Fix syntax error (#15133)

This commit is contained in:
Melrose 2025-05-26 14:42:10 +08:00 committed by GitHub
parent 04b903056c
commit 4e3a78374e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -75,11 +75,9 @@ if [ -n "$JAVA_HOME" ] ; then
JAVACMD="$JAVA_HOME/bin/java"
fi
if [ ! -x "$JAVACMD" ] ; then
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME\n\nPlease set the JAVA_HOME variable in your environment to match the location of your Java installation."
fi
else
JAVACMD="java"
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.