mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-24 14:14:31 +02:00
BaseTools: Reset ERRORLEVEL in toolsetup.bat after edk2basetools check
When using the in-source BaseTools, edksetup.bat will exit with an ERRORLEVEL of 1 because the line in toolsetup.bat "%PYTHON_COMMAND% -c "import edk2basetools" >NUL 2>NUL" fails. Ensure ERRORLEVEL is set to 0 when edksetup.bat or toolsetup.bat is successfully run. Signed-off-by: Rebecca Cran <rebecca@bsdio.com> Reviewed-by: Bob Feng <bob.c.feng@intel.com> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
This commit is contained in:
parent
f0a3f6d9c3
commit
17143c4837
@ -401,6 +401,8 @@ goto end
|
||||
if %ERRORLEVEL% EQU 0 (
|
||||
goto use_pip_basetools
|
||||
) else (
|
||||
REM reset ERRORLEVEL
|
||||
type nul>nul
|
||||
goto use_builtin_basetools
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user