Skip to content

Commit

Permalink
Improve on it
Browse files Browse the repository at this point in the history
  • Loading branch information
diemogebhardt committed Nov 30, 2024
1 parent c3dc215 commit c6660e2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bin/verify-binary-architecture.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ normalize_architecture() {
*) echo "unknown" ;;
esac
}
file_output=$(file -b "${BINARY_PATH}")
BINARY_ARCHITECTURE=$(echo "${file_output}" | grep -Eo "x86_64|x86-64|arm64|aarch64|Aarch64" | head -n1)
BINARY_ARCHITECTURE=$(file -b "${BINARY_PATH}" | grep -Eo "x86_64|x86-64|arm64|aarch64|Aarch64" | head -n1)
BINARY_ARCHITECTURE=$(normalize_architecture "$BINARY_ARCHITECTURE")

# Verify that binary architecture matches target architecture
Expand Down

0 comments on commit c6660e2

Please sign in to comment.