From 3a1658e302b5d22e0f1ad3f34f45708edb5521f6 Mon Sep 17 00:00:00 2001 From: Oren Novotny Date: Sun, 11 Aug 2019 10:44:27 -0400 Subject: [PATCH] check exit code of sign tool --- Ix.NET/Source/build/Sign-Package.ps1 | 4 ++++ Rx.NET/Source/build/Sign-Package.ps1 | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Ix.NET/Source/build/Sign-Package.ps1 b/Ix.NET/Source/build/Sign-Package.ps1 index 97329d8f68..c1f0d114f1 100644 --- a/Ix.NET/Source/build/Sign-Package.ps1 +++ b/Ix.NET/Source/build/Sign-Package.ps1 @@ -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" } diff --git a/Rx.NET/Source/build/Sign-Package.ps1 b/Rx.NET/Source/build/Sign-Package.ps1 index 0c30bfeba5..84580101e6 100644 --- a/Rx.NET/Source/build/Sign-Package.ps1 +++ b/Rx.NET/Source/build/Sign-Package.ps1 @@ -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" }