From f2d88ea9201b96df6328c04ffe9ec66606375a38 Mon Sep 17 00:00:00 2001 From: Ivan Martinez Date: Sun, 19 Apr 2020 04:15:52 -0400 Subject: [PATCH] Fix prysm.sh for arm64 (#5507) * Fix prysm script for arm --- prysm.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/prysm.sh b/prysm.sh index 053221bd9..dac8d9e1f 100755 --- a/prysm.sh +++ b/prysm.sh @@ -71,6 +71,7 @@ readonly wrapper_dir="$(dirname "$(get_realpath "${BASH_SOURCE[0]}")")/dist" arch=$(uname -m) arch=${arch/x86_64/amd64} arch=${arch/aarch64/arm64} +readonly os_arch_suffix="$(uname -s | tr '[:upper:]' '[:lower:]')-$arch" system="" case "$OSTYPE" in @@ -81,9 +82,11 @@ case "$OSTYPE" in *) exit 1 ;; esac -if [ "$system" == "windows" ] -then + +if [ "$system" == "windows" ]; then arch="amd64.exe" +elif [[ "$os_arch_suffix" == *"arm64"* ]]; then + arch=$os_arch_suffix fi mkdir -p $wrapper_dir