aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-10-24 17:08:24 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2017-10-24 17:08:24 -0700
commitaec9215800a42e7e4ec28aad756695a8ced8876c (patch)
tree8382e5ae3990aafa7138ecd86b43c32322171953 /scripts
parent23702360ce912b1827afe5559de936cc9a24cd0c (diff)
downloadvcpkg-aec9215800a42e7e4ec28aad756695a8ced8876c.tar.gz
vcpkg-aec9215800a42e7e4ec28aad756695a8ced8876c.zip
[InternalCI.ps1] Fix error when buildtrees/ does not exist
Diffstat (limited to 'scripts')
-rw-r--r--scripts/internalCI.ps15
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/internalCI.ps1 b/scripts/internalCI.ps1
index 887eb7bea..16ce4fc7a 100644
--- a/scripts/internalCI.ps1
+++ b/scripts/internalCI.ps1
@@ -5,7 +5,10 @@ New-Item -type directory downloads -errorAction SilentlyContinue | Out-Null
if (-not $?) { throw $? }
# Clear out any intermediate files from the previous build
-Get-ChildItem buildtrees/*/* | ? { $_.Name -ne "src" -and $_.Extension -ne ".log"} | Remove-Item -Recurse -Force
+if (Test-Path buildtrees)
+{
+ Get-ChildItem buildtrees/*/* | ? { $_.Name -ne "src" -and $_.Extension -ne ".log"} | Remove-Item -Recurse -Force
+}
# Purge any outdated packages
./vcpkg remove --outdated --recurse