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:
parent
ddfef2e8aa
commit
0c326ca340
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue