From 450ce689ba1b18d3d52f9ce5147053459a0413b3 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Sat, 22 Nov 2025 01:02:36 +0500 Subject: [PATCH] build-deps - fix `set` resetting `ERRORLEVEL` in commands logged in 52d3bae54 #7390 --- win/build-deps.cmd | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/win/build-deps.cmd b/win/build-deps.cmd index 4e9ac70aed..b850c8b924 100644 --- a/win/build-deps.cmd +++ b/win/build-deps.cmd @@ -814,8 +814,8 @@ if not exist "%~3". ( ) else ( call cecho.cmd 0 13 "%DEPENDENCY_NAME% already downloaded. Skipping." ) -set LAST_ACTION=DownloadFile '%DEPENDENCY_NAME%'. set RET=%ERRORLEVEL% +set LAST_ACTION=DownloadFile '%DEPENDENCY_NAME%'. popd exit /b %RET% @@ -828,8 +828,9 @@ if not exist "%~3". ( ) else ( call cecho.cmd 0 13 "%DEPENDENCY_NAME% already extracted into %~3. Skipping." ) +set RET=%ERRORLEVEL% set LAST_ACTION=ExtractArchive '%DEPENDENCY_NAME%'. -exit /b %ERRORLEVEL% +exit /b %RET% :: GitCloneOrPullRepository - Clones or pulls (if repository already cloned) a Git repository :: Params: %1 gitUrl, %2 destDir