diff options
| author | TitanSnow <[email protected]> | 2017-05-26 20:59:50 +0800 |
|---|---|---|
| committer | TitanSnow <[email protected]> | 2017-05-26 20:59:50 +0800 |
| commit | 028a50df6f8e9b2de9562a0096f3f0d65b1c8c96 (patch) | |
| tree | 2695bbae9a8c9d27fb2a63e50c844f2d751d0c35 /scripts | |
| parent | 7b14166454a152c5b2e0bd2f346744ae782a5556 (diff) | |
fix ForEach
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/getpb.ps1 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/getpb.ps1 b/scripts/getpb.ps1 index 16042bb85..f62c3d122 100644 --- a/scripts/getpb.ps1 +++ b/scripts/getpb.ps1 @@ -35,7 +35,7 @@ Function Get-AppVeyorArtifacts{ }else{ $job = 0 } - Write-Output $obj.builds | ForEach-Object { + ForEach($_ in $obj.builds){ $jobId = $_.jobs[$job].jobId $artifacts = Invoke-RestMethod -Method Get -Uri "$apiUrl/buildjobs/$jobId/artifacts" -Headers $headers $artifactFileName = $artifacts[0].fileName |
