HTHou commented on a change in pull request #5026:
URL: https://github.com/apache/iotdb/pull/5026#discussion_r803809423
##########
File path: cli/src/assembly/resources/sbin/start-cli.bat
##########
@@ -59,16 +59,19 @@ echo %PARAMETERS% | findstr /c:"-h ">nul && (set
PARAMETERS=%PARAMETERS%) || (se
echo %PARAMETERS%
"%JAVA_HOME%\bin\java" %JAVA_OPTS% -cp %CLASSPATH% %MAIN_CLASS% %PARAMETERS%
-
+set ret_code=%ERRORLEVEL%
goto finally
:err
echo JAVA_HOME environment variable must be set!
+set ret_code=1
pause
@REM
-----------------------------------------------------------------------------
:finally
-ENDLOCAL
\ No newline at end of file
+ENDLOCAL
+
+EXIT %ret_code%
Review comment:
Hi, does `start-cli.sh` need to do such changes?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]