Fix incorrect return code on SSTableVerify.bat

Patch by pmotta; reviewed by pthompson for CASSANDRA-9941
This commit is contained in:
Paulo Motta 2015-08-03 14:42:42 -04:00 committed by Joshua McKenzie
parent 925e620b46
commit 31c1958e2c
2 changed files with 9 additions and 2 deletions

View File

@ -31,7 +31,7 @@ REM set JAVA_HOME="<directory>"
REM ***** CLASSPATH library setting *****
REM Ensure that any user defined CLASSPATH variables are not used on startup
set CLASSPATH="%CASSANDRA_HOME%\conf"
set CLASSPATH="%CASSANDRA_CONF%"
REM For each jar in the CASSANDRA_HOME lib directory call append to build the CLASSPATH variable.
for %%i in ("%CASSANDRA_HOME%\lib\*.jar") do call :append "%%i"

View File

@ -34,8 +34,15 @@ goto finally
:err
echo JAVA_HOME environment variable must be set!
set ERRORLEVEL=1
pause
:finally
ENDLOCAL & set RC=%ERRORLEVEL%
goto :exit_with_code
ENDLOCAL
:returncode
exit /B %RC%
:exit_with_code
call :returncode %RC%