summaryrefslogtreecommitdiff
path: root/development/zulu-openjdk11/zulu-openjdk11.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/zulu-openjdk11/zulu-openjdk11.SlackBuild')
-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"