More outputs on tmp
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user