mirror of
https://github.com/zebrajr/node.git
synced 2025-12-06 00:20:08 +01: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:
parent
ad5e2dab4c
commit
b9a427976b
|
|
@ -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%
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user