Skip to content

Commit 77c5f45

Browse files
committed
Update free-disk-space-windows.ps1
1 parent 055483d commit 77c5f45

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/ci/scripts/free-disk-space-windows.ps1

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ foreach ($dir in $dirs) {
2121
}
2222

2323
foreach ($job in Get-Job) {
24-
Wait-Job $job
25-
# Print if any, any.
26-
Write-Output "::warning file=$PSCommandPath::$($job.Error)"
24+
Wait-Job $job > $null
25+
if ($job.Error) {
26+
Write-Output "::warning file=$PSCommandPath::$($job.Error)"
27+
}
2728
Remove-Job $job
2829
}
2930

0 commit comments

Comments
 (0)