Updating with 'uname -m'

This commit is contained in:
John Matthews
2022-02-03 16:55:54 -05:00
parent 91f65b3441
commit 4f5dfb5d42

View File

@@ -101,10 +101,24 @@ elif [[ "$OSTYPE" == darwin* ]]; then
opsys=darwin opsys=darwin
fi fi
arch=amd64 # Supported values of 'arch': amd64, arm64, ppc64le, s390x
if command -v arch &> /dev/null; then case $(uname -m) in
arch=$(arch) x86_64)
fi arch=amd64
;;
arm64)
arch=arm64
;;
ppc64le)
arch=ppc64le
;;
s390x)
arch=s390x
;;
*)
arch=amd64
;;
esac
releases=$(curl -s $release_url) releases=$(curl -s $release_url)