From: Felipe Zorzo Date: Sat, 3 Sep 2022 00:05:21 +0000 (-0300) Subject: Reset %errorlevel% after checks in batch scripts X-Git-Tag: 9.7.0.61563~156 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=83d6994c9261bd1d551a1d29208d3dbfb8017404;p=sonarqube.git Reset %errorlevel% after checks in batch scripts --- diff --git a/sonar-application/src/main/assembly/bin/windows-x86-64/StartSonar.bat b/sonar-application/src/main/assembly/bin/windows-x86-64/StartSonar.bat index e154489c0bc..9a6bedd02ef 100755 --- a/sonar-application/src/main/assembly/bin/windows-x86-64/StartSonar.bat +++ b/sonar-application/src/main/assembly/bin/windows-x86-64/StartSonar.bat @@ -63,7 +63,7 @@ goto:eof echo ERROR: Another instance of the SonarQube application is already running with PID %SQ_PROCESS% exit /b 1 ) - goto:eof + exit /b 0 endlocal diff --git a/sonar-application/src/main/assembly/bin/windows-x86-64/lib/find_java.bat b/sonar-application/src/main/assembly/bin/windows-x86-64/lib/find_java.bat index 12ac5fcb7c6..82ca851821f 100644 --- a/sonar-application/src/main/assembly/bin/windows-x86-64/lib/find_java.bat +++ b/sonar-application/src/main/assembly/bin/windows-x86-64/lib/find_java.bat @@ -26,7 +26,7 @@ rem Returns an error code if Java executable is not found in the PATH and the en echo ERROR: java.exe not found. Please make sure that the environmental variable SONAR_JAVA_PATH points to the Java executable. exit /b 1 ) - goto:eof + exit /b 0 :exit exit /b \ No newline at end of file