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...
1 parent f1a5d4f commit 05267df0fc3fe76abf37715b60dcbbbebfe88989 @Raptor399 Raptor399 committed Nov 3, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/external-resources/osx/
@@ -18,7 +18,7 @@ APPLICATION_DIR=`cd "$DIRNAME"/../..; pwd`
# Determine the name of the JRE directory
-JRE_DIR=`ls "$APPLICATION_DIR/Contents/PlugIns"*`
+JRE_DIR=`ls "$APPLICATION_DIR/Contents/PlugIns"* | tail -1`
export JAVA_HOME

0 comments on commit 05267df

Please sign in to comment.