aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBilly O'Neal <bion@microsoft.com>2021-08-02 15:16:08 -0700
committerGitHub <noreply@github.com>2021-08-02 15:16:08 -0700
commit6b6b1e3b0b4af84da16297dd51fab9570b4b472d (patch)
tree9b4fe4245743ea2c6e1be32f874b61d4904122b1
parent403c952a0c6496e07cdf995114fe8b9ae5e1f65c (diff)
downloadvcpkg-6b6b1e3b0b4af84da16297dd51fab9570b4b472d.tar.gz
vcpkg-6b6b1e3b0b4af84da16297dd51fab9570b4b472d.zip
Avoid rmdir the downloads directory is nonexistent. (#19314)
-rw-r--r--scripts/azure-pipelines/windows/azure-pipelines.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/azure-pipelines/windows/azure-pipelines.yml b/scripts/azure-pipelines/windows/azure-pipelines.yml
index c70eab86b..7bd1cab0f 100644
--- a/scripts/azure-pipelines/windows/azure-pipelines.yml
+++ b/scripts/azure-pipelines/windows/azure-pipelines.yml
@@ -29,7 +29,7 @@ jobs:
- script: .\bootstrap-vcpkg.bat
displayName: 'Bootstrap vcpkg'
- script: |
- rmdir /S /Q ${{ variables.VCPKG_DOWNLOADS }} 2>&1
+ if exist ${{ variables.VCPKG_DOWNLOADS }} rmdir /S /Q ${{ variables.VCPKG_DOWNLOADS }} 2>&1
displayName: 'Clean downloads'
- task: PowerShell@2
displayName: '*** Test Modified Ports and Prepare Test Logs ***'