Skip to content

Commit 7a545b2

Browse files
committed
Honour JAVA_HOME environment variable. Fixes #28
1 parent bcd7427 commit 7a545b2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

minced

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,9 @@ PHYS_DIR=`pwd -P`
3030

3131
cd "$ORIG_DIR"
3232

33-
java -jar "$PHYS_DIR"/minced.jar "$@"
33+
java=java
34+
if [ -e "$JAVA_HOME/bin/java" ]; then
35+
java="$JAVA_HOME/bin/java"
36+
fi
37+
38+
exec $java -jar "$PHYS_DIR"/minced.jar "$@"

0 commit comments

Comments
 (0)