diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2017-11-16 02:01:50 -0800 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-11-16 02:02:00 -0800 |
| commit | b2e1dc3e5a4224bd06f1aaa52c87f5c8939787ae (patch) | |
| tree | 67b103eaea29ab3f6d4024242c6565422cfb30e8 /scripts/fetchDependency.ps1 | |
| parent | 52ef8c72804f70681e4ec7c9deaee171222d0fea (diff) | |
| download | vcpkg-b2e1dc3e5a4224bd06f1aaa52c87f5c8939787ae.tar.gz vcpkg-b2e1dc3e5a4224bd06f1aaa52c87f5c8939787ae.zip | |
Use temp-and-rename pattern for extracting
Diffstat (limited to 'scripts/fetchDependency.ps1')
| -rw-r--r-- | scripts/fetchDependency.ps1 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/fetchDependency.ps1 b/scripts/fetchDependency.ps1 index 8ea69e488..2cc782feb 100644 --- a/scripts/fetchDependency.ps1 +++ b/scripts/fetchDependency.ps1 @@ -89,7 +89,7 @@ function SelectProgram([Parameter(Mandatory=$true)][string]$Dependency) } elseif($extractionType -eq $ExtractionType_ZIP) { - if (-not (Test-Path $executableFromDownload)) # consider renaming the extraction folder to make sure the extraction finished + if (-not (Test-Path $executableFromDownload)) { vcpkgExtractFile -File $downloadPath -Destination $extractionFolder } |
