Don't try to remove directories that don't exist

This commit is contained in:
Sebastiaan Janssen
2017-09-09 00:02:08 +02:00
parent 406a206b03
commit 37c4fc5f74

View File

@@ -91,14 +91,15 @@ SET PATH="%MSBUILDPATH%";%PATH%
ReplaceIISExpressPortNumber.exe ..\src\Umbraco.Web.UI\Umbraco.Web.UI.csproj %RELEASE% ReplaceIISExpressPortNumber.exe ..\src\Umbraco.Web.UI\Umbraco.Web.UI.csproj %RELEASE%
ECHO. IF EXIST ..\src\Umbraco.Web.UI.Client\bower_components (
ECHO Removing the belle build folder and bower_components folder to make sure everything is clean as a whistle ECHO.
RD ..\src\Umbraco.Web.UI.Client\build /Q /S 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 RD ..\src\Umbraco.Web.UI.Client\bower_components /Q /S
)
ECHO. ECHO.
ECHO Removing existing built files to make sure everything is clean as a whistle 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 UmbracoCms.*.zip 2>NUL
DEL /F /Q UmbracoExamine.*.zip 2>NUL DEL /F /Q UmbracoExamine.*.zip 2>NUL
DEL /F /Q UmbracoCms.*.nupkg 2>NUL DEL /F /Q UmbracoCms.*.nupkg 2>NUL