mumble-voip / mumble-releng

Mumble Release Engineering
Other
17 stars 21 forks source link

Fix error handling pattern in *.cmd #42

Closed hacst closed 7 years ago

hacst commented 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

hacst commented 7 years ago

Because that way it's easier to differentiate from our use of errorlevel.