Make install.sh support 32 bit packages.

This commit is contained in:
David Newhall II 2019-07-05 13:31:34 -07:00
parent 36851d5a36
commit e310ada1fd
1 changed files with 4 additions and 4 deletions

View File

@ -14,10 +14,10 @@ LATEST=https://api.github.com/repos/${REPO}/releases/latest
ARCH=$(uname -m) ARCH=$(uname -m)
# $ARCH is passed into egrep to find the right file. # $ARCH is passed into egrep to find the right file.
if [ "$ARCH" = "x86_64" ]; then if [ "$ARCH" = "x86_64" ] || [ "$ARCH" = "amd64" ]; then
ARCH="$ARCH|amd64" ARCH="x86_64|amd64"
elif [ "$ARCH" = "amd64" ]; then elif [[ $ARCH == *386* ]] || [[ $ARCH == *686* ]]; then
ARCH="$ARCH|x86_64" ARCH="i386"
elif [[ $ARCH == *arm64* ]] || [[ $ARCH == *armv8* ]]; then elif [[ $ARCH == *arm64* ]] || [[ $ARCH == *armv8* ]]; then
echo "Unsupported Architecture: ${ARCH}, sorry!" echo "Unsupported Architecture: ${ARCH}, sorry!"
exit 1 exit 1