Use Start-BitsTransfer for downloading OpenCppCoverage instead

The old `Start-FileDownload` was no longer recognized by the pswh
version on my local machine, this updates the OpenCppCoverage install
script to use a still usable cmdlet.
This commit is contained in:
Martin Hořeňovský 2025-04-29 16:26:08 +02:00
parent 5abfc0aa9c
commit 74fcff6e5b
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A

View File

@ -4,7 +4,7 @@ $installerPath = [System.IO.Path]::Combine($Env:USERPROFILE, "Downloads", "OpenC
if(-Not (Test-Path $installerPath)) {
Write-Host -ForegroundColor White ("Downloading OpenCppCoverage from: " + $downloadUrl)
Start-FileDownload $downloadUrl -FileName $installerPath
Start-BitsTransfer $downloadUrl -Destination $installerPath
}
Write-Host -ForegroundColor White "About to install OpenCppCoverage..."