Skip to content
This repository was archived by the owner on Feb 4, 2023. It is now read-only.

Commit 9734f4c

Browse files
committed
check whether java executable exists AND is executable before launching it
1 parent dba13c9 commit 9734f4c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/universalJavaApplicationStub

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ if [ -z ${JVMMainClass} ]; then
216216
exit 1
217217

218218

219-
# check whether $JAVACMD is executable
220-
elif [ -x "$JAVACMD" ]; then
219+
# check whether $JAVACMD is a file and executable
220+
elif [ -f "$JAVACMD" ] && [ -x "$JAVACMD" ] ; then
221221

222222
# enable drag&drop to the dock icon
223223
export CFProcessPath="$0"

0 commit comments

Comments
 (0)