Skip to content

Commit

Permalink
Update download.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
jessehouwing committed Aug 14, 2024
1 parent 7247e31 commit 317b7e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions download.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ $taskMetadatas | ForEach-Object -Parallel {
Invoke-WebRequest -Uri "$url/_apis/distributedtask/tasks/$taskid/$taskversion" -OutFile "$outputDir/$taskZip" -Headers $header

write-output "::notice::Verifying: $taskZip"
& "C:\Program Files\7-Zip\7z.exe" x "$outputDir/$taskZip"
& "C:\Program Files\7-Zip\7z.exe" t "$outputDir/$taskZip"
if ($LASTEXITCODE -ne 0)
{
throw "Failed to extract $taskZip"
throw "Failed test failed for: $taskZip"
}

$success = $true
Expand Down

0 comments on commit 317b7e4

Please sign in to comment.