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