Skip to content

Commit

Permalink
Support executing kse.sh with spaces in JAVA_OPTIONS
Browse files Browse the repository at this point in the history
  • Loading branch information
dadaewq authored Feb 26, 2024
1 parent 438432f commit c97446c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kse/res/kse.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ JAR_FILE="${SCRIPT_DIR}/kse.jar"
JAVA_OPTIONS="-splash:${SCRIPT_DIR}/splash.png"

if [ -d "${SCRIPT_DIR}/jre" ]; then
"${SCRIPT_DIR}/jre/bin/java" ${JAVA_OPTIONS} -jar "${JAR_FILE}" "$@"
"${SCRIPT_DIR}/jre/bin/java" "${JAVA_OPTIONS}" -jar "${JAR_FILE}" "$@"
else
java ${JAVA_OPTIONS} -jar "${JAR_FILE}" "$@"
java "${JAVA_OPTIONS}" -jar "${JAR_FILE}" "$@"
fi

0 comments on commit c97446c

Please sign in to comment.