From 23dd58bdbc33d5034ae47ed0890c3bceea4c440b Mon Sep 17 00:00:00 2001 From: Pedro Igor Date: Wed, 20 Apr 2022 04:21:57 -0300 Subject: [PATCH] Properly handle space in the directory name (#11357) Closes #11343 --- quarkus/dist/src/main/content/bin/kc.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quarkus/dist/src/main/content/bin/kc.sh b/quarkus/dist/src/main/content/bin/kc.sh index fd0919a16f..4f6227e278 100644 --- a/quarkus/dist/src/main/content/bin/kc.sh +++ b/quarkus/dist/src/main/content/bin/kc.sh @@ -23,7 +23,7 @@ fi GREP="grep" DIRNAME=`dirname "$RESOLVED_NAME"` -SERVER_OPTS="-Dkc.home.dir=$DIRNAME/../ -Djboss.server.config.dir=$DIRNAME/../conf -Djava.util.logging.manager=org.jboss.logmanager.LogManager -Dquarkus-log-max-startup-records=10000" +SERVER_OPTS="-Dkc.home.dir='$DIRNAME'/../ -Djboss.server.config.dir='$DIRNAME'/../conf -Djava.util.logging.manager=org.jboss.logmanager.LogManager -Dquarkus-log-max-startup-records=10000" DEBUG_MODE="${DEBUG:-false}" DEBUG_PORT="${DEBUG_PORT:-8787}" @@ -84,7 +84,7 @@ if [ "$DEBUG_MODE" = "true" ]; then fi fi -CLASSPATH_OPTS="$DIRNAME/../lib/quarkus-run.jar" +CLASSPATH_OPTS="'$DIRNAME'/../lib/quarkus-run.jar" JAVA_RUN_OPTS="$JAVA_OPTS $SERVER_OPTS -cp $CLASSPATH_OPTS io.quarkus.bootstrap.runner.QuarkusEntryPoint ${CONFIG_ARGS#?}"