From e9e788d2abe7afe575fb9b3e22a448876ade28fe Mon Sep 17 00:00:00 2001 From: Lightemerald Date: Thu, 20 Jun 2024 11:58:34 +0200 Subject: [PATCH] More outputs on tmp --- setupTmp.ps1 | 4 ++++ 1 file changed, 4 insertions(+) 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 } }