From e310ada1fddad497708651013f7e42cb7f7b48c7 Mon Sep 17 00:00:00 2001 From: David Newhall II Date: Fri, 5 Jul 2019 13:31:34 -0700 Subject: [PATCH] Make install.sh support 32 bit packages. --- scripts/install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index 1d43bc8b..0015af25 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -14,10 +14,10 @@ LATEST=https://api.github.com/repos/${REPO}/releases/latest ARCH=$(uname -m) # $ARCH is passed into egrep to find the right file. -if [ "$ARCH" = "x86_64" ]; then - ARCH="$ARCH|amd64" -elif [ "$ARCH" = "amd64" ]; then - ARCH="$ARCH|x86_64" +if [ "$ARCH" = "x86_64" ] || [ "$ARCH" = "amd64" ]; then + ARCH="x86_64|amd64" +elif [[ $ARCH == *386* ]] || [[ $ARCH == *686* ]]; then + ARCH="i386" elif [[ $ARCH == *arm64* ]] || [[ $ARCH == *armv8* ]]; then echo "Unsupported Architecture: ${ARCH}, sorry!" exit 1