aboutsummaryrefslogtreecommitdiff
path: root/development/openjdk8/openjdk8.SlackBuild
diff options
context:
space:
mode:
authorStrahil Yordanov <strahilski@yahoo.com>2019-10-26 21:51:53 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-10-26 21:51:53 +0700
commite90bc146182b91294e4bf1349bee72eb9cf3305f (patch)
treee3d8ba41af870b3b08b2ec2ae10f9cd9d27ef657 /development/openjdk8/openjdk8.SlackBuild
parent3367d36c49056bcc02277edf4caa0d39d091cdc3 (diff)
development/openjdk8: Fix script.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/openjdk8/openjdk8.SlackBuild')
-rw-r--r--development/openjdk8/openjdk8.SlackBuild4
1 files changed, 2 insertions, 2 deletions
diff --git a/development/openjdk8/openjdk8.SlackBuild b/development/openjdk8/openjdk8.SlackBuild
index 5cc6309ad4850..6691c01d6d707 100644
--- a/development/openjdk8/openjdk8.SlackBuild
+++ b/development/openjdk8/openjdk8.SlackBuild
@@ -32,7 +32,7 @@ ICEDTEA=icedtea-3.13.0
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm; echo "Unsupported arch $ARCH"; exit 1;;
*) ARCH=$( uname -m ) ;;
esac
@@ -53,7 +53,7 @@ else
fi
BOOT_JAVA=/usr/lib${LIBDIRSUFFIX}/openjdk7
-[ ! -d ${BOOT_JAVA} ] && BOOT_JAVA=${BOOT_JAVA}8
+[ ! -d ${BOOT_JAVA} ] && BOOT_JAVA=${BOOT_JAVA%?}8
[ ! -d ${BOOT_JAVA} ] && { echo "Boot java not found"; exit 1; }
set -e