Skip to content

Commit

Permalink
Fix condition for current architecture in setup script (#4078)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhay-krishna authored Nov 21, 2024
1 parent 2265322 commit 2a0a052
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build/lib/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,10 @@ wait::for::dockerd

build::docker::retry_pull $QEMU_INSTALLER_IMAGE

if [[ "$(uname -m)" == "x86_64" ]]; then
CURRENT_ARCH="$(uname -m)"
if [[ "$CURRENT_ARCH" == "amd64" || "$CURRENT_ARCH" == "x86_64" ]]; then
EMULATOR_ARCH="aarch64"
elif [[ "$(uname -m)" == "arm64" ]]; then
elif [[ "$CURRENT_ARCH" == "arm64" || "$CURRENT_ARCH" == "aarch64" ]]; then
EMULATOR_ARCH="amd64"
fi
docker run --privileged --rm $QEMU_INSTALLER_IMAGE --install $EMULATOR_ARCH

0 comments on commit 2a0a052

Please sign in to comment.