mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

jvergara
23.46.2007 05e7f084667cf1d8bb580a214e5210e33ca82ffe
Fix for issue 1271.
"%*" Does not work properly when we have arguments with quotes. Use a FOR statement to determine whether the user provided arguments or not to the stop-ds.bat command.
1 files modified
4 ■■■■ changed files
opendj-sdk/opends/resource/bin/stop-ds.bat 4 ●●●● patch | view | raw | blame | history
opendj-sdk/opends/resource/bin/stop-ds.bat
@@ -32,9 +32,9 @@
set DIR_HOME=%~dP0..
set RESTART=0
set NO_ARG_OR_ONLY_RESTART=0
set NO_ARG_OR_ONLY_RESTART=1
if "%*" == "" set NO_ARG_OR_ONLY_RESTART=1
for %%x in (%*) DO set NO_ARG_OR_ONLY_RESTART=0
if "%NO_ARG_OR_ONLY_RESTART%" == "1" goto execute
for %%x in (%*) DO if "%%x" == "-R" set RESTART=1