Fixed error when $OS_ARCH returns aarch64 (#45)

For some machines $OS_ARCH returns aarch64 instead of ARM64,and as i see here this should fix it.
This commit is contained in:
Semih Aslan 2023-05-03 02:47:03 +00:00 committed by GitHub
parent 4babb22f84
commit 24c5ba2b9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,6 +8,7 @@ OS_ARCH=$(uname -m)
case "${OS_ARCH}" in case "${OS_ARCH}" in
x86_64*) OS_ARCH="x86_64";; x86_64*) OS_ARCH="x86_64";;
arm64*) OS_ARCH="aarch64";; arm64*) OS_ARCH="aarch64";;
aarch64*) OS_ARCH="aarch64";;
*) echo "Unknown system architecture: $OS_ARCH! This script runs only on x86_64 or arm64" && exit *) echo "Unknown system architecture: $OS_ARCH! This script runs only on x86_64 or arm64" && exit
esac esac