1414@ rem  limitations under the License.
1515@ rem 
1616
17- @ if " %DEBUG% "   ==   " "   @ echo  off 
17+ @ if " %DEBUG% " == " "   @ echo  off 
1818@ rem  ##########################################################################
1919@ rem 
2020@ rem   Gradle startup script for Windows
2525if  " %OS% " == " Windows_NT"   setlocal 
2626
2727set  DIRNAME = %~dp0 
28- if  " %DIRNAME% "   ==   " "   set  DIRNAME = .
28+ if  " %DIRNAME% " == " "   set  DIRNAME = .
2929set  APP_BASE_NAME = %~n0 
3030set  APP_HOME = %DIRNAME% 
3131
@@ -40,7 +40,7 @@ if defined JAVA_HOME goto findJavaFromJavaHome
4040
4141set  JAVA_EXE = java.exe
4242%JAVA_EXE%  -version > NUL  2 >& 1
43- if  " %ERRORLEVEL% "   ==   " 0 "   goto  execute
43+ if  %ERRORLEVEL%   equ   0  goto  execute
4444
4545echo .
4646echo  ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
@@ -75,13 +75,15 @@ set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
7575
7676:end 
7777@ rem  End local scope for the variables with windows NT shell
78- if  " %ERRORLEVEL% " == " 0 "   goto  mainEnd
78+ if  %ERRORLEVEL%   equ   0  goto  mainEnd
7979
8080:fail 
8181rem  Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
8282rem  the _cmd.exe /c_ return code!
83- if   not  " "   ==  " %GRADLE_EXIT_CONSOLE% "   exit  1 
84- exit  /b 1 
83+ set  EXIT_CODE = %ERRORLEVEL% 
84+ if  %EXIT_CODE%  equ  0  set  EXIT_CODE = 1 
85+ if  not  " " == " %GRADLE_EXIT_CONSOLE% "   exit  %EXIT_CODE% 
86+ exit  /b %EXIT_CODE% 
8587
8688:mainEnd 
8789if  " %OS% " == " Windows_NT"   endlocal 
0 commit comments