File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -37,13 +37,14 @@ steps:
3737 }
3838 if ($env:FILTER) {
3939 ($env:FILTER -split ';') -join "`n" | Out-File __filelist.txt -Encoding utf8
40- $ec = $files | %{ & $env:TRUSTED_SIGNING_CMD @(-split $env:TRUSTED_SIGNING_ARGS) -fl __filelist.txt $_; $LASTEXITCODE }
41- del __filelist.txt
4240 } else {
43- $ec = $files | %{ & $env:TRUSTED_SIGNING_CMD @(-split $env:TRUSTED_SIGNING_ARGS) $_; $LASTEXITCODE }
41+ "*" | Out-File __filelist.txt -Encoding utf8
4442 }
45- # Ensure we correctly fail the task if any signature failed
46- $ec | ?{ $_ -ne 0 } | %{ exit $_ }
43+ foreach ($f in $files) {
44+ & $env:TRUSTED_SIGNING_CMD @(-split $env:TRUSTED_SIGNING_ARGS) -fl __filelist.txt $_
45+ if (-not $?) { exit $LASTEXITCODE }
46+ }
47+ del __filelist.txt
4748 displayName: 'Sign binaries'
4849 retryCountOnTaskFailure: 3
4950 workingDirectory: ${{ parameters.WorkingDir }}
You can’t perform that action at this time.
0 commit comments