Skip to content

Commit f200a85

Browse files
committed
build: suppress the output of rd %config%
1 parent d102d16 commit f200a85

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vcbuild.bat

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,8 @@ if errorlevel 1 (
337337
if "%target%" == "Clean" goto exit
338338

339339
:after-build
340-
rd %config%
340+
:: Suppress "The system cannot find the file specified." on every clean build.
341+
rd %config% > nul 2> nul
341342
if errorlevel 1 echo "Old build output exists at 'out\%config%'. Please remove." & exit /B
342343
:: Use /J because /D (symlink) requires special permissions.
343344
if EXIST out\%config% mklink /J %config% out\%config%

0 commit comments

Comments
 (0)