aboutsummaryrefslogtreecommitdiff
path: root/development/zulu-openjdk8
diff options
context:
space:
mode:
authorSébastien Ballet <slacker6896@gmail.com>2021-12-29 11:13:46 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-12-30 11:20:11 +0700
commiteabd50ed815b4a8b7ad49093f80a462342e705f8 (patch)
treeb9a6619c7d5b530a0aceaadc7d018a0f0454d50b /development/zulu-openjdk8
parent8858b7c4df6671e9588bea0bd0d064664ee1c553 (diff)
development/zulu-openjdk8: 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/zulu-openjdk8')
-rw-r--r--development/zulu-openjdk8/zulu-openjdk8.SlackBuild12
1 files changed, 6 insertions, 6 deletions
diff --git a/development/zulu-openjdk8/zulu-openjdk8.SlackBuild b/development/zulu-openjdk8/zulu-openjdk8.SlackBuild
index 4fcacc210ec9..c02a1675ff98 100644
--- a/development/zulu-openjdk8/zulu-openjdk8.SlackBuild
+++ b/development/zulu-openjdk8/zulu-openjdk8.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"