Make install.sh support 32 bit packages.
This commit is contained in:
parent
36851d5a36
commit
e310ada1fd
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue