diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2017-10-24 17:08:24 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-10-24 17:08:24 -0700 |
| commit | aec9215800a42e7e4ec28aad756695a8ced8876c (patch) | |
| tree | 8382e5ae3990aafa7138ecd86b43c32322171953 | |
| parent | 23702360ce912b1827afe5559de936cc9a24cd0c (diff) | |
| download | vcpkg-aec9215800a42e7e4ec28aad756695a8ced8876c.tar.gz vcpkg-aec9215800a42e7e4ec28aad756695a8ced8876c.zip | |
[InternalCI.ps1] Fix error when buildtrees/ does not exist
| -rw-r--r-- | scripts/internalCI.ps1 | 5 |
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 |
