diff --git a/setupTmp.ps1 b/setupTmp.ps1 index 115e47a..1533825 100644 --- a/setupTmp.ps1 +++ b/setupTmp.ps1 @@ -140,11 +140,15 @@ function DownloadFiles { } foreach ($fileInfo in $filesToDownload) { $filePath = Join-Path $tmpPath $fileInfo.FileName + + Write-Host "Downloading $($fileInfo.FileName)..." if (-not (Test-Path -Path $filePath -PathType Leaf)) { + Write-Host "File not found, downloading..." Invoke-WebRequest -Uri $fileInfo.Url -OutFile $filePath } if ((Get-FileHash -Path $filePath -Algorithm SHA1).Hash -ne $fileInfo.Hash) { + Write-Host "File hash mismatch, redownloading..." Invoke-WebRequest -Uri $fileInfo.Url -OutFile $filePath } }