mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-11 20:20:05 +00:00
parent
33774721bb
commit
f2d88ea920
7
prysm.sh
7
prysm.sh
@ -71,6 +71,7 @@ readonly wrapper_dir="$(dirname "$(get_realpath "${BASH_SOURCE[0]}")")/dist"
|
|||||||
arch=$(uname -m)
|
arch=$(uname -m)
|
||||||
arch=${arch/x86_64/amd64}
|
arch=${arch/x86_64/amd64}
|
||||||
arch=${arch/aarch64/arm64}
|
arch=${arch/aarch64/arm64}
|
||||||
|
readonly os_arch_suffix="$(uname -s | tr '[:upper:]' '[:lower:]')-$arch"
|
||||||
|
|
||||||
system=""
|
system=""
|
||||||
case "$OSTYPE" in
|
case "$OSTYPE" in
|
||||||
@ -81,9 +82,11 @@ case "$OSTYPE" in
|
|||||||
*) exit 1 ;;
|
*) exit 1 ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ "$system" == "windows" ]
|
|
||||||
then
|
if [ "$system" == "windows" ]; then
|
||||||
arch="amd64.exe"
|
arch="amd64.exe"
|
||||||
|
elif [[ "$os_arch_suffix" == *"arm64"* ]]; then
|
||||||
|
arch=$os_arch_suffix
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p $wrapper_dir
|
mkdir -p $wrapper_dir
|
||||||
|
Loading…
Reference in New Issue
Block a user