Install arch appropriate build if the 'arch' command is present

This commit is contained in:
John Matthews
2022-01-29 11:17:48 -05:00
parent a5b61016bb
commit 91f65b3441

View File

@@ -95,13 +95,17 @@ trap cleanup EXIT ERR
pushd "$tmpDir" >& /dev/null
opsys=windows
arch=amd64
if [[ "$OSTYPE" == linux* ]]; then
opsys=linux
elif [[ "$OSTYPE" == darwin* ]]; then
opsys=darwin
fi
arch=amd64
if command -v arch &> /dev/null; then
arch=$(arch)
fi
releases=$(curl -s $release_url)
if [[ $releases == *"API rate limit exceeded"* ]]; then