arch bugfix

This commit is contained in:
0xOzgur 2024-10-14 11:09:39 +03:00
parent 67d41bfcb6
commit 448cc5d4c3
2 changed files with 32 additions and 0 deletions

View File

@ -85,6 +85,22 @@ cd ~/ceremonyclient/
# git remote set-url origin https://github.com/QuilibriumNetwork/ceremonyclient.git || git remote set-url origin https://source.quilibrium.com/quilibrium/ceremonyclient.git
git checkout release
get_os_arch() {
local arch=$(uname -m)
local os=$(uname -s | tr '[:upper:]' '[:lower:]')
case $arch in
x86_64)
arch="amd64"
;;
aarch64)
arch="arm64"
;;
esac
echo "${os}-${arch}"
}
# Get the current OS and architecture
OS_ARCH=$(get_os_arch)

View File

@ -41,6 +41,22 @@ git checkout release
echo "✅ Downloaded the latest changes successfully."
echo
get_os_arch() {
local arch=$(uname -m)
local os=$(uname -s | tr '[:upper:]' '[:lower:]')
case $arch in
x86_64)
arch="amd64"
;;
aarch64)
arch="arm64"
;;
esac
echo "${os}-${arch}"
}
# Get the current OS and architecture
OS_ARCH=$(get_os_arch)