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

jvergara
04.21.2007 b97e32e5dee83d4b943177d7175fd149d8d47ec9
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
opendj-sdk/opends/resource/setup.bat 2 ●●● patch | view | raw | blame | history
opendj-sdk/opends/resource/uninstall.bat 2 ●●● patch | view | raw | blame | history
opendj-sdk/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
opendj-sdk/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