Skip to content

Commit

Permalink
Remove dependency on dpkg in install_linux.sh (#2229)
Browse files Browse the repository at this point in the history
arm64 and aarch64 are effectively equivalent for modern machines, logic that checks for a 32 bit userspace is unnecessary. Drops `dpkg` dependency and fixes the bug where missing `dpkg` resulted in fallback to a 32-bit binary.

Closes #2228
  • Loading branch information
jimmydavies authored Feb 7, 2025
1 parent 5bb3435 commit fcbcce5
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions install_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ set -o pipefail
get_machine_arch () {
machine_arch=""
case $(uname -m) in
i386) machine_arch="386" ;;
i686) machine_arch="386" ;;
x86_64) machine_arch="amd64" ;;
arm64) machine_arch="arm64" ;;
aarch64) dpkg --print-architecture | grep -q "arm64" && machine_arch="arm64" || machine_arch="arm" ;;
i386) machine_arch="386" ;;
i686) machine_arch="386" ;;
x86_64) machine_arch="amd64" ;;
arm64|aarch64) machine_arch="arm64" ;;
esac
echo $machine_arch
}
Expand Down

0 comments on commit fcbcce5

Please sign in to comment.