diff options
author | Rebecca Cran <rebecca@bsdio.com> | 2023-04-24 11:06:52 -0600 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2023-05-08 19:03:18 +0000 |
commit | e6de6052a00acae5baf0b2dac7d09433590242c4 (patch) | |
tree | c28371db6ed9857f6ef657bc51081075a84e7ec9 | |
parent | 11ec5161fa6ed177b51b6c310696b0179aff53f3 (diff) | |
download | edk2-e6de6052a00acae5baf0b2dac7d09433590242c4.tar.gz edk2-e6de6052a00acae5baf0b2dac7d09433590242c4.tar.bz2 edk2-e6de6052a00acae5baf0b2dac7d09433590242c4.zip |
edksetup.bat: if toolsetup.bat fails, just exit
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>
-rwxr-xr-x | edksetup.bat | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/edksetup.bat b/edksetup.bat index 2fdf130e00..71ceefb327 100755 --- a/edksetup.bat +++ b/edksetup.bat @@ -86,6 +86,7 @@ if exist %EDK_TOOLS_PATH%\Source set BASE_TOOLS_PATH=%EDK_TOOLS_PATH% :checkBaseTools
IF NOT EXIST "%EDK_TOOLS_PATH%\toolsetup.bat" goto BadBaseTools
call %EDK_TOOLS_PATH%\toolsetup.bat %*
+if %ERRORLEVEL% NEQ 0 goto end
if /I "%1"=="Reconfig" shift
goto check_NASM
goto check_cygwin
|