From 317b7e4e15568f62427b903bad03396ed6d8abb6 Mon Sep 17 00:00:00 2001 From: Jesse Houwing Date: Wed, 14 Aug 2024 14:02:59 +0200 Subject: [PATCH] Update download.ps1 --- download.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/download.ps1 b/download.ps1 index 36d94cb..406f7a3 100644 --- a/download.ps1 +++ b/download.ps1 @@ -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