aboutsummaryrefslogtreecommitdiffstats
path: root/main/java-common/java-common.trigger
diff options
context:
space:
mode:
authorSimon Frankenberger <simon@fraho.eu>2019-06-03 20:06:12 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2019-06-05 15:49:49 +0000
commit33c5fb54d728be0c5a3afa3ee4a014a76488360d (patch)
treec0a8774ab15535e3d4f7a18b7a473b50397aa2a6 /main/java-common/java-common.trigger
parentdbc32a6c7771ef26009ddd2151d9e67c0ee3ab01 (diff)
downloadaports-33c5fb54d728be0c5a3afa3ee4a014a76488360d.tar.gz
aports-33c5fb54d728be0c5a3afa3ee4a014a76488360d.tar.bz2
aports-33c5fb54d728be0c5a3afa3ee4a014a76488360d.tar.xz
main/java-common: Fix sorting function for newer java version (10+)
Diffstat (limited to 'main/java-common/java-common.trigger')
-rw-r--r--main/java-common/java-common.trigger2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/java-common/java-common.trigger b/main/java-common/java-common.trigger
index 6d0613d48e..d46bcbe8ba 100644
--- a/main/java-common/java-common.trigger
+++ b/main/java-common/java-common.trigger
@@ -6,7 +6,7 @@ if [ -x /usr/lib/jvm/forced-jvm ]; then
fi
cd /usr/lib/jvm
-LATEST=`ls -d java-* | sort -r | head -1`
+LATEST=`ls -d java-* | sort -Vr | head -1`
if [ "$LATEST" ]; then
ln -sfn $LATEST default-jvm
fi