error if trying to install jq on arm64 machines

pull/12770/head
Steven Powell 2021-10-25 10:25:40 -07:00
parent d72d87f2e7
commit 82bd665abb
1 changed files with 5 additions and 2 deletions

View File

@ -399,8 +399,11 @@ sec=$(tail -c 3 <<< $((${elapsed}00/60)))
elapsed=$min.$sec
if ! type "jq" > /dev/null; then
echo ">> Installing jq"
if [ "${OS}" != "darwin" ]; then
echo ">> Installing jq"
if [ "${ARCH}" == "arm64" ]; then
echo "Unable to install 'jq' automatically for arm64, please install 'jq' manually."
exit 5
elif [ "${OS}" != "darwin" ]; then
curl -LO https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 && sudo install jq-linux64 /usr/local/bin/jq
else
curl -LO https://github.com/stedolan/jq/releases/download/jq-1.6/jq-osx-amd64 && sudo install jq-osx-amd64 /usr/local/bin/jq