Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make sure the correct JRE directory is returned.

IzPack does not remove older JRE directories when updating PMS, causing startup problems.
  • Loading branch information...
commit 05267df0fc3fe76abf37715b60dcbbbebfe88989 1 parent f1a5d4f
Patrick Atoon Raptor399 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/main/external-resources/osx/pms.sh
2  src/main/external-resources/osx/pms.sh
View
@@ -18,7 +18,7 @@ APPLICATION_DIR=`cd "$DIRNAME"/../..; pwd`
JAR_DIR="$APPLICATION_DIR/Contents/Resources/Java"
# Determine the name of the JRE directory
-JRE_DIR=`ls "$APPLICATION_DIR/Contents/PlugIns"*`
+JRE_DIR=`ls "$APPLICATION_DIR/Contents/PlugIns"* | tail -1`
JAVA_HOME="$APPLICATION_DIR/Contents/PlugIns/$JRE_DIR/Contents/Home"
export JAVA_HOME
Please sign in to comment.
Something went wrong with that request. Please try again.