Skip to content

Commit

Permalink
Properly handle space in the directory name (keycloak#11357)
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroigor authored and vramik committed Apr 21, 2022
1 parent bd3ae85 commit 404bd20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions quarkus/dist/src/main/content/bin/kc.sh
Expand Up @@ -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}"
Expand Down Expand Up @@ -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#?}"

Expand Down

0 comments on commit 404bd20

Please sign in to comment.