development/nwjs: Fixed arch handling.

Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
David Spencer 2017-05-17 19:20:58 +00:00
parent 58173a8e3c
commit 31e1f92985

View file

@ -41,10 +41,13 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i586" ]; then
if [ "$ARCH" = "i586" ] || [ "$ARCH" = "i686" ]; then
SUFFIX="linux-ia32"
elif [ "$ARCH" = "x86_64" ]; then
SUFFIX="linux-x64"
else
echo "$ARCH is not supported." >&2
exit 1
fi
set -e