diff options
author | Sébastien Ballet <slacker6896@gmail.com> | 2021-12-29 11:14:38 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-12-30 11:20:12 +0700 |
commit | 0c326ca3405f49bb833b8bb7ee208fd2b29146a2 (patch) | |
tree | 9f8829e81a180916aadeac80445a15992b9a4d4d /development/zulu-openjdk17 | |
parent | ddfef2e8aa023f70bc5568f42771f8a21a6b86cb (diff) |
development/zulu-openjdk17: 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-openjdk17')
-rw-r--r-- | development/zulu-openjdk17/zulu-openjdk17.SlackBuild | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/development/zulu-openjdk17/zulu-openjdk17.SlackBuild b/development/zulu-openjdk17/zulu-openjdk17.SlackBuild index 84b94a4f3e1ca..25b8a7ce065c2 100644 --- a/development/zulu-openjdk17/zulu-openjdk17.SlackBuild +++ b/development/zulu-openjdk17/zulu-openjdk17.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" |