From 83d6994c9261bd1d551a1d29208d3dbfb8017404 Mon Sep 17 00:00:00 2001 From: Felipe Zorzo Date: Fri, 2 Sep 2022 21:05:21 -0300 Subject: [PATCH] Reset %errorlevel% after checks in batch scripts --- .../src/main/assembly/bin/windows-x86-64/StartSonar.bat | 2 +- .../src/main/assembly/bin/windows-x86-64/lib/find_java.bat | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5