diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2018-04-06 15:22:50 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2018-04-06 19:31:19 -0700 |
| commit | d5a1e1054120c993560e5de1c6ad8ac16131d356 (patch) | |
| tree | 0e06ba32984e5d72d6d3d1efac11f937abbd2c0c /scripts/fetchTool.ps1 | |
| parent | b87aeb77deb7b6cdc7e78d0b006243a15993e78c (diff) | |
| download | vcpkg-d5a1e1054120c993560e5de1c6ad8ac16131d356.tar.gz vcpkg-d5a1e1054120c993560e5de1c6ad8ac16131d356.zip | |
[ps1] Verify hash for already present files. Dont check for path twice
Diffstat (limited to 'scripts/fetchTool.ps1')
| -rw-r--r-- | scripts/fetchTool.ps1 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/fetchTool.ps1 b/scripts/fetchTool.ps1 index c1e8d87fc..8de642674 100644 --- a/scripts/fetchTool.ps1 +++ b/scripts/fetchTool.ps1 @@ -61,6 +61,10 @@ function fetchToolInternal([Parameter(Mandatory=$true)][string]$tool) Write-Host "Downloading $tool... done." } + else + { + vcpkgCheckEqualFileHash -url $url -filePath $downloadPath -expectedHash $toolData.sha512 + } if ($isArchive) { |
