Closed hacst closed 7 years ago
Replace "if errorlevel 1 exit /b errorlevel" with "if errorlevel 1 exit /b %ERRORLEVEL%". The latter properly transports the errorlevel to outside callers like powershell while the latter only seems to work when the script is called from cmd.exe
Because that way it's easier to differentiate from our use of errorlevel.
errorlevel
Replace "if errorlevel 1 exit /b errorlevel" with "if errorlevel 1 exit /b %ERRORLEVEL%". The latter properly transports the errorlevel to outside callers like powershell while the latter only seems to work when the script is called from cmd.exe