Skip to content

Commit

Permalink
Fix prysm.sh for arm64 (prysmaticlabs#5507)
Browse files Browse the repository at this point in the history
* Fix prysm script for arm
  • Loading branch information
0xKiwi authored Apr 19, 2020
1 parent 3377472 commit f2d88ea
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions prysm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit f2d88ea

Please sign in to comment.