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

jvergara
23.46.2007 a4a6860b5ee00c993eb232bfa0ea9142a88c808f
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
opends/resource/bin/stop-ds.bat 4 ●●●● patch | view | raw | blame | history
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