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>
This commit is contained in:
Sébastien Ballet 2021-12-29 11:14:38 +01:00 committed by Willy Sudiarto Raharjo
parent ddfef2e8aa
commit 0c326ca340
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
1 changed files with 6 additions and 6 deletions

View File

@ -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"