mirror of
https://github.com/nodejs/node.git
synced 2026-11-29 14:27:57 -05:00
build: check before removing %config% link
PR-URL: https://github.com/nodejs/node/pull/51437 Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
1 parent
cc37959232
commit
85f63f3d7d
1 file changed
+2
-1
+2
-1
@@ -337,7 +337,8 @@ if errorlevel 1 (
|
||||
if "%target%" == "Clean" goto exit
|
||||
|
||||
:after-build
|
||||
rd %config%
|
||||
:: Check existence of %config% before removing it.
|
||||
if exist %config% rd %config%
|
||||
if errorlevel 1 echo "Old build output exists at 'out\%config%'. Please remove." & exit /B
|
||||
:: Use /J because /D (symlink) requires special permissions.
|
||||
if EXIST out\%config% mklink /J %config% out\%config%
|
||||
|
||||
Reference in new issue
Block a user