From 37c4fc5f74f242a6f38dd4155ddd5162782a51cb Mon Sep 17 00:00:00 2001 From: Sebastiaan Janssen Date: Sat, 9 Sep 2017 00:02:08 +0200 Subject: [PATCH] Don't try to remove directories that don't exist --- build/Build.bat | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/build/Build.bat b/build/Build.bat index 65522fff6b..4a02d637b8 100644 --- a/build/Build.bat +++ b/build/Build.bat @@ -91,14 +91,15 @@ SET PATH="%MSBUILDPATH%";%PATH% ReplaceIISExpressPortNumber.exe ..\src\Umbraco.Web.UI\Umbraco.Web.UI.csproj %RELEASE% -ECHO. -ECHO Removing the belle build folder and bower_components folder to make sure everything is clean as a whistle -RD ..\src\Umbraco.Web.UI.Client\build /Q /S -RD ..\src\Umbraco.Web.UI.Client\bower_components /Q /S +IF EXIST ..\src\Umbraco.Web.UI.Client\bower_components ( + ECHO. + ECHO Removing the bower_components folder to make sure everything is clean as a whistle + RD ..\src\Umbraco.Web.UI.Client\bower_components /Q /S +) ECHO. ECHO Removing existing built files to make sure everything is clean as a whistle -RMDIR /Q /S _BuildOutput +RMDIR /Q /S _BuildOutput 2>NUL DEL /F /Q UmbracoCms.*.zip 2>NUL DEL /F /Q UmbracoExamine.*.zip 2>NUL DEL /F /Q UmbracoCms.*.nupkg 2>NUL