Commit 33c5fb54 authored by Simon F's avatar Simon F Committed by Natanael Copa

main/java-common: Fix sorting function for newer java version (10+)

parent dbc32a6c
# Contributor: Timo Teras <timo.teras@iki.fi> # Contributor: Timo Teras <timo.teras@iki.fi>
# Maintainer: Timo Teras <timo.teras@iki.fi> # Maintainer: Timo Teras <timo.teras@iki.fi>
pkgname=java-common pkgname=java-common
pkgver=0.1 pkgver=0.2
pkgrel=0 pkgrel=0
pkgdesc="Java common (updates java links)" pkgdesc="Java common (updates java links)"
url="https://git.alpinelinux.org/aports.git" url="https://git.alpinelinux.org/aports.git"
......
...@@ -6,7 +6,7 @@ if [ -x /usr/lib/jvm/forced-jvm ]; then ...@@ -6,7 +6,7 @@ if [ -x /usr/lib/jvm/forced-jvm ]; then
fi fi
cd /usr/lib/jvm cd /usr/lib/jvm
LATEST=`ls -d java-* | sort -r | head -1` LATEST=`ls -d java-* | sort -Vr | head -1`
if [ "$LATEST" ]; then if [ "$LATEST" ]; then
ln -sfn $LATEST default-jvm ln -sfn $LATEST default-jvm
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment