From a4a6860b5ee00c993eb232bfa0ea9142a88c808f Mon Sep 17 00:00:00 2001 From: jvergara <jvergara@localhost> Date: Fri, 23 Feb 2007 11:46:58 +0000 Subject: [PATCH] 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. --- opends/resource/bin/stop-ds.bat | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/opends/resource/bin/stop-ds.bat b/opends/resource/bin/stop-ds.bat index 430d4ea..91b4f84 100644 --- a/opends/resource/bin/stop-ds.bat +++ b/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 -- Gitblit v1.10.0