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

jvergara
04.21.2007 920269bc1645597a547ca0aa7261970524ac5143
Fix for issue 1753.

Instead of using %* to test if the user provided arguments in the command line just use the first argument with no quotes (%~0) to do the test. The fix applies both to the setup and the uninstall scripts on Windows.
2 files modified
4 ■■■■ changed files
opends/resource/setup.bat 2 ●●● patch | view | raw | blame | history
opends/resource/uninstall.bat 2 ●●● patch | view | raw | blame | history
opends/resource/setup.bat
@@ -67,7 +67,7 @@
"%JAVA_BIN%" org.opends.server.tools.InstallDS -t > NUL 2>&1
if not %errorlevel% == 0 goto noValidJavaHome
if "%*" == "" goto callLaunch
if %~0 == "" goto callLaunch
goto callJava
:callLaunch
opends/resource/uninstall.bat
@@ -67,7 +67,7 @@
"%JAVA_BIN%" org.opends.server.tools.InstallDS -t > NUL 2>&1
if not %errorlevel% == 0 goto noValidJavaHome
if "%*" == "" goto callLaunch
if %~0 == "" goto callLaunch
goto callJava
:callLaunch