summaryrefslogtreecommitdiff
path: root/development
diff options
context:
space:
mode:
authorSébastien Ballet <slacker6896@gmail.com>2021-12-29 11:14:15 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-12-30 11:20:12 +0700
commitddfef2e8aa023f70bc5568f42771f8a21a6b86cb (patch)
tree744e2f8c25ed21a2837a69be35a820c7d7d50e00 /development
parenteabd50ed815b4a8b7ad49093f80a462342e705f8 (diff)
downloadslackbuilds-ddfef2e8aa023f70bc5568f42771f8a21a6b86cb.tar.gz
development/zulu-openjdk11: Fix the ARCH checking routine.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development')
-rw-r--r--development/zulu-openjdk11/zulu-openjdk11.SlackBuild12
1 files changed, 6 insertions, 6 deletions
diff --git a/development/zulu-openjdk11/zulu-openjdk11.SlackBuild b/development/zulu-openjdk11/zulu-openjdk11.SlackBuild
index 377daa2754..9413edf6ef 100644
--- a/development/zulu-openjdk11/zulu-openjdk11.SlackBuild
+++ b/development/zulu-openjdk11/zulu-openjdk11.SlackBuild
@@ -31,12 +31,12 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
-if [ -z "$ARCH" ]; then
- case "$( uname -m )" in
- i?86) ARCH=i686 ;;
- x86_64) ARCH=x64 ;;
- esac
-fi
+ARCH=${ARCH:-$(uname -m)}
+
+case "${ARCH}" in
+ i?86) ARCH=i686 ;;
+ x86_64) ARCH=x64 ;;
+esac
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"