mirror of
https://github.com/cemu-project/vcpkg.git
synced 2024-12-13 13:57:24 +00:00
[InternalCI.ps1] Fix error when buildtrees/ does not exist
This commit is contained in:
parent
23702360ce
commit
aec9215800
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user