From 9761bd07533a177031a25b717c14cd809c6398d2 Mon Sep 17 00:00:00 2001 From: james-prysm <90280386+james-prysm@users.noreply.github.com> Date: Mon, 21 Nov 2022 17:11:02 -0600 Subject: [PATCH] correctly assign arm64 arch for Apple M1 (#11675) * fixing typo * removing if statement, not needed anymore --- prysm.sh | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/prysm.sh b/prysm.sh index de57fa97c..8ab5d8af0 100755 --- a/prysm.sh +++ b/prysm.sh @@ -75,14 +75,11 @@ fi readonly wrapper_dir="$(dirname "$(get_realpath "${BASH_SOURCE[0]}")")/dist" -# for Apple M1s -if [ "$(uname -s)" == "Darwin" ] && [ "$(uname -m)" == "arm64" ]; then - arch="amd64" -else - arch=$(uname -m) - arch=${arch/x86_64/amd64} - arch=${arch/aarch64/arm64} -fi + +arch=$(uname -m) +arch=${arch/x86_64/amd64} +arch=${arch/aarch64/arm64} + readonly os_arch_suffix="$(uname -s | tr '[:upper:]' '[:lower:]')-$arch" system=""