diff --git a/prysm.sh b/prysm.sh index 86dbfc93d..a1b8f3bd1 100755 --- a/prysm.sh +++ b/prysm.sh @@ -72,9 +72,16 @@ if [ "$#" -lt 1 ]; then 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 readonly os_arch_suffix="$(uname -s | tr '[:upper:]' '[:lower:]')-$arch" system=""