aboutsummaryrefslogtreecommitdiff
path: root/development
diff options
context:
space:
mode:
Diffstat (limited to 'development')
-rw-r--r--development/zulu-openjdk7/zulu-openjdk7.SlackBuild12
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"