mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-22 03:30:35 +00:00
correctly assign arm64 arch for Apple M1 (#11675)
* fixing typo * removing if statement, not needed anymore
This commit is contained in:
parent
0bcddb3009
commit
9761bd0753
13
prysm.sh
13
prysm.sh
@ -75,14 +75,11 @@ fi
|
|||||||
|
|
||||||
readonly wrapper_dir="$(dirname "$(get_realpath "${BASH_SOURCE[0]}")")/dist"
|
readonly wrapper_dir="$(dirname "$(get_realpath "${BASH_SOURCE[0]}")")/dist"
|
||||||
|
|
||||||
# for Apple M1s
|
|
||||||
if [ "$(uname -s)" == "Darwin" ] && [ "$(uname -m)" == "arm64" ]; then
|
arch=$(uname -m)
|
||||||
arch="amd64"
|
arch=${arch/x86_64/amd64}
|
||||||
else
|
arch=${arch/aarch64/arm64}
|
||||||
arch=$(uname -m)
|
|
||||||
arch=${arch/x86_64/amd64}
|
|
||||||
arch=${arch/aarch64/arm64}
|
|
||||||
fi
|
|
||||||
readonly os_arch_suffix="$(uname -s | tr '[:upper:]' '[:lower:]')-$arch"
|
readonly os_arch_suffix="$(uname -s | tr '[:upper:]' '[:lower:]')-$arch"
|
||||||
|
|
||||||
system=""
|
system=""
|
||||||
|
Loading…
Reference in New Issue
Block a user