diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2018-04-05 03:16:22 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2018-04-06 17:24:46 -0700 |
| commit | 3a9be92f7e9cb867eaef4091ace282e4c8e82b92 (patch) | |
| tree | 9a44695fe4b762852318e3ae3271af279b6f3b4c /scripts/fetchTool.ps1 | |
| parent | 5b78dfaf68d33c2444437f92d253d7fa912152ec (diff) | |
| download | vcpkg-3a9be92f7e9cb867eaef4091ace282e4c8e82b92.tar.gz vcpkg-3a9be92f7e9cb867eaef4091ace282e4c8e82b92.zip | |
[fetchTool.ps1] Move downloaded file in place after hash check
Diffstat (limited to 'scripts/fetchTool.ps1')
| -rw-r--r-- | scripts/fetchTool.ps1 | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/scripts/fetchTool.ps1 b/scripts/fetchTool.ps1 index c076d304a..c1e8d87fc 100644 --- a/scripts/fetchTool.ps1 +++ b/scripts/fetchTool.ps1 @@ -51,21 +51,17 @@ function fetchToolInternal([Parameter(Mandatory=$true)][string]$tool) # Download aria2 with .NET. aria2 will be used to download everything else. if ($tool -eq "aria2") { - vcpkgDownloadFile $url $downloadPath + vcpkgDownloadFile $url $downloadPath $toolData.sha512 } else { $aria2exe = fetchToolInternal "aria2" - vcpkgDownloadFileWithAria2 $aria2exe $url $downloadPath + vcpkgDownloadFileWithAria2 $aria2exe $url $downloadPath $toolData.sha512 } Write-Host "Downloading $tool... done." } - $expectedDownloadedFileHash = $toolData.sha512 - $downloadedFileHash = vcpkgGetSHA512 $downloadPath - vcpkgCheckEqualFileHash -filePath $downloadPath -expectedHash $expectedDownloadedFileHash -actualHash $downloadedFileHash - if ($isArchive) { Write-Host "Extracting $tool..." |
