diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2018-01-18 18:12:14 -0800 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2018-01-23 14:16:05 -0800 |
| commit | 2890ffa31c409e1384bdd562f6f5b9fc827a4c14 (patch) | |
| tree | ec9b284bd1f2731a20e391ced482fedf5f36afae /scripts | |
| parent | 130fa279f968ad9661ff4614a2b87f1bb0c5aee2 (diff) | |
| download | vcpkg-2890ffa31c409e1384bdd562f6f5b9fc827a4c14.tar.gz vcpkg-2890ffa31c409e1384bdd562f6f5b9fc827a4c14.zip | |
Don't print "downloading..." if file is already downloaded
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/fetchDependency.ps1 | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/scripts/fetchDependency.ps1 b/scripts/fetchDependency.ps1 index e4cab124c..1ff44c211 100644 --- a/scripts/fetchDependency.ps1 +++ b/scripts/fetchDependency.ps1 @@ -75,9 +75,12 @@ function SelectProgram([Parameter(Mandatory=$true)][string]$Dependency) throw "Unknown program requested" } - Write-Host "Downloading $Dependency..." - vcpkgDownloadFile $url $downloadPath - Write-Host "Downloading $Dependency has completed successfully." + if (!(Test-Path $downloadPath)) + { + Write-Host "Downloading $Dependency..." + vcpkgDownloadFile $url $downloadPath + Write-Host "Downloading $Dependency has completed successfully." + } $downloadedFileHash = vcpkgGetSHA256 $downloadPath vcpkgCheckEqualFileHash -filePath $downloadPath -expectedHash $expectedDownloadedFileHash -actualHash $downloadedFileHash |
