]> xenbits.xensource.com Git - ovmf.git/commitdiff
edksetup.bat: if toolsetup.bat fails, just exit
authorRebecca Cran <rebecca@bsdio.com>
Mon, 24 Apr 2023 17:06:52 +0000 (11:06 -0600)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 8 May 2023 19:03:18 +0000 (19:03 +0000)
If toolsetup.bat fails (i.e. exits with a non-zero %ERRORLEVEL%), don't
try and carry on but just quit.

Signed-off-by: Rebecca Cran <rebecca@bsdio.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
edksetup.bat

index 2fdf130e00e21f790b184143d84212b93f82caca..71ceefb327427449960d27ff2fdce444222cea97 100755 (executable)
@@ -86,6 +86,7 @@ if exist %EDK_TOOLS_PATH%\Source set BASE_TOOLS_PATH=%EDK_TOOLS_PATH%
 :checkBaseTools\r
 IF NOT EXIST "%EDK_TOOLS_PATH%\toolsetup.bat" goto BadBaseTools\r
 call %EDK_TOOLS_PATH%\toolsetup.bat %*\r
+if %ERRORLEVEL% NEQ 0 goto end\r
 if /I "%1"=="Reconfig" shift\r
 goto check_NASM\r
 goto check_cygwin\r