Skip to content

Commit

Permalink
check exit code of sign tool
Browse files Browse the repository at this point in the history
  • Loading branch information
Oren Novotny committed Aug 11, 2019
1 parent 1ea7dde commit 3a1658e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Ix.NET/Source/build/Sign-Package.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ foreach ($nupkg in $nupkgs){

.\SignClient 'sign' -c $appSettings -i $nupkg -r $Env:SignClientUser -s $Env:SignClientSecret -n 'Ix.NET' -d 'Ix.NET' -u 'https://github.com/dotnet/reactive'

if ($LASTEXITCODE -ne 0) {
exit 1
}

Write-Host "Finished signing $nupkg"
}

Expand Down
4 changes: 3 additions & 1 deletion Rx.NET/Source/build/Sign-Package.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ foreach ($nupkg in $nupkgs){
Write-Host "Submitting $nupkg for signing"

.\SignClient 'sign' -c $appSettings -i $nupkg -r $Env:SignClientUser -s $Env:SignClientSecret -n 'Rx.NET' -d 'Rx.NET' -u 'https://github.com/dotnet/reactive'

if ($LASTEXITCODE -ne 0) {
exit 1
}
Write-Host "Finished signing $nupkg"
}

Expand Down

0 comments on commit 3a1658e

Please sign in to comment.