Skip to content

Commit

Permalink
Add debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
diemogebhardt committed Nov 30, 2024
1 parent be3eef3 commit fa706c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/verify-binary-architecture.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ TARGET_ARCHITECTURE=$(parse_target_architecture "$TARGET_TRIPLE")
# Parse and normalize binary architecture
parse_and_normalize_binary_architecture() {
local binary_path="$1"
get() { file -b "$binary_path"; }
get() { file -b "$binary_path" | tee /dev/stderr; }
parse() { grep -Eo 'x86_64|x86-64|arm64|aarch64|Aarch64' | head -n1; }
normalize() { sed -E 's/x86-64/x86_64/;s/(arm64|Aarch64)/aarch64/'; }
fail() { echo "unknown binary architecture"; }
Expand Down

0 comments on commit fa706c1

Please sign in to comment.