~ % sh install.sh
sh: install.sh: No such file or directory
~ % # Download the script
curl -sSLo install.sh https://install.hclq.sh
# Inspect the script before executing, as is good practice
# for code from the internet, regardless of trust!
less install.sh
...
# Run it!
sh install.sh
Unsupported or undetected platform: 'arm64'
~ %
Edited platform_check() in install.sh
platform_check() {
# OS and ARCH variables also used to download binary in main function
OS="$(uname | awk '{print tolower($0)}')"
ARCH="$(uname -m)"
case "$ARCH" in
amd64) ARCH=amd64;;
x86_64) ARCH=amd64;;
i386) ARCH=386;;
i686) ARCH=386;;
arm) ARCH=arm;;
arm64) ARCH=arm;;
*) fail "Unsupported or undetected platform: '$ARCH'";;
esac
}
Tried install process again:
sh install.sh
Installing /usr/local/bin/hclq
hclq is not available for OS 'darwin' on architecture 'arm'
Edited platform_check() in install.sh
Tried install process again: