mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-22 03:30:35 +00:00
Update prysm.sh to support Mac M1 chip (#9000)
Updated for Apple M1 users. Co-authored-by: mrabino1 <mrabino1@gmail.com>
This commit is contained in:
parent
aa4c21d6df
commit
26c4e7b527
7
prysm.sh
7
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=""
|
||||
|
Loading…
Reference in New Issue
Block a user