Typo in bash case

This commit is contained in:
cmdr2 2022-10-04 15:44:15 +05:30
parent c72e1f0943
commit a5f5113e9a

View File

@ -6,15 +6,15 @@
OS_NAME=$(uname -s)
case "${OS_NAME}" in
Linux*) OS_NAME="linux"
Darwin*) OS_NAME="mac"
Linux*) OS_NAME="linux";;
Darwin*) OS_NAME="mac";;
*) echo "Unknown OS: $OS_NAME! This only runs on Linux or Mac" && exit
esac
OS_ARCH=$(uname -m)
case "${OS_ARCH}" in
x86_64*) OS_ARCH="x64"
arm64*) OS_ARCH="arm64"
x86_64*) OS_ARCH="x64";;
arm64*) OS_ARCH="arm64";;
*) echo "Unknown system architecture: $OS_ARCH! This only runs on x86_64 or arm64" && exit
esac