Skip to content

Commit

Permalink
keycloak#10443 start-dev: parsing command lines parameters
Browse files Browse the repository at this point in the history
kc.bat called "shift" twice after parsing "start-dev". But "start-dev" is only one parameter so that "shift" should be called only once or else further command line parameters won't be parsed correctly.

Closes keycloak#10443
  • Loading branch information
JPA2015 authored and abstractj committed Mar 18, 2022
1 parent bc27c7c commit a5a384b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions quarkus/dist/src/main/content/bin/kc.bat
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ if "%KEY%" == "--debug" (
if "%KEY%" == "start-dev" (
set "CONFIG_ARGS=%CONFIG_ARGS% --profile=dev %KEY% --auto-build"
shift
shift
goto READ-ARGS
)
if not "%KEY:~0,2%"=="--" if "%KEY:~0,2%"=="-D" (
Expand Down Expand Up @@ -137,4 +136,4 @@ if not "!CONFIG_ARGS:%AUTO_BUILD_OPTION%=!"=="!CONFIG_ARGS!" (

"%JAVA%" %JAVA_RUN_OPTS%

:END
:END

0 comments on commit a5a384b

Please sign in to comment.