From 26453ae47a7394a40799c6723d9a4fc16077b81a Mon Sep 17 00:00:00 2001 From: Eric Mehl Date: Tue, 19 Mar 2024 13:00:32 -0400 Subject: [PATCH] gaffer.cmd : Always exit with `%ERRORLEVEL%` In the past, we were echoing an error message when we exited with non-zero exit code. That was removed for clarity, and now this can be simplified even more to remove the check for a non-zero exit code and just forward to exit code as-is to the calling process. --- bin/gaffer.cmd | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/bin/gaffer.cmd b/bin/gaffer.cmd index 71bc564bea9..d88d0bd7ab8 100644 --- a/bin/gaffer.cmd +++ b/bin/gaffer.cmd @@ -160,12 +160,8 @@ if "%GAFFER_DEBUG%" NEQ "" ( "%GAFFER_ROOT%"\bin\python.exe "%GAFFER_ROOT%"/bin/__gaffer.py %* ) -if %ERRORLEVEL% NEQ 0 ( - exit /B %ERRORLEVEL% -) - ENDLOCAL -exit /B 0 +exit /B %ERRORLEVEL% :prependToPath set NewValue=%~1