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 08e5ec3b69
commit 3ce48cbcea
1 changed files with 4 additions and 1 deletions

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