win: do not close the calling console when build-deps.cmd finishes

A bare exit terminates the whole cmd.exe process, so running
build-deps.cmd from a Visual Studio command prompt closed the window on
completion and any errors were unreadable. exit /b returns from the
script with the same code and leaves the shell open, as prescribed in
issue 7413. The script's only other window-closing exit paths already
use exit /b.

Generated with the assistance of an AI coding tool.
This commit is contained in:
Petru Conduraru
2026-07-19 23:34:10 +03:00
parent 89523999b3
commit f98b64e545
+1 -1
View File
@@ -837,7 +837,7 @@ echo Build ended at %END_TIME%. Time elapsed %hh%:%mm%:%ss%.%cc%.
:BuildTimeSkipped
set PATH=%ORIGINAL_PATH%
cd "%~dp0"
exit %IFCOS_SCRIPT_RET%
exit /b %IFCOS_SCRIPT_RET%
::::::::::::::::::::::::::::::::::::: Subroutines :::::::::::::::::::::::::::::::::::::