diff options
author | Sébastien Ballet <slacker6896@gmail.com> | 2021-12-29 11:13:24 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-12-30 11:20:11 +0700 |
commit | 8858b7c4df6671e9588bea0bd0d064664ee1c553 (patch) | |
tree | c83b6d8258b037d59ce00184e39cf1200ce14d34 /development/zulu-openjdk7 | |
parent | 32be007769c4d1f340b914349dca2c91ea476ad3 (diff) |
development/zulu-openjdk7: 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-openjdk7')
-rw-r--r-- | development/zulu-openjdk7/zulu-openjdk7.SlackBuild | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/development/zulu-openjdk7/zulu-openjdk7.SlackBuild b/development/zulu-openjdk7/zulu-openjdk7.SlackBuild index d61f156c88f81..ede496b43b106 100644 --- a/development/zulu-openjdk7/zulu-openjdk7.SlackBuild +++ b/development/zulu-openjdk7/zulu-openjdk7.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" |