replace with Invoke-WebRequest for optimizations in commit fa7d942

This commit is contained in:
Baipyrus 2024-11-25 15:33:04 +01:00
parent b5a56cd60e
commit 3e07cfaa12

View File

@ -132,7 +132,7 @@ function ProcessUrlFiles
}
Write-Host "Downloading $fileName from $url$conditional..." -ForegroundColor Cyan
Invoke-RestMethod $url -OutFile $fileName$extension
Invoke-WebRequest $url -OutFile $fileName$extension
$tmpDestination = "$tmpApp\$fileName$extension"
# Copy only if destination is provided