瀏覽代碼

check exit code of sign tool

Oren Novotny 6 年之前
父節點
當前提交
3a1658e302
共有 2 個文件被更改,包括 7 次插入1 次删除
  1. 4 0
      Ix.NET/Source/build/Sign-Package.ps1
  2. 3 1
      Rx.NET/Source/build/Sign-Package.ps1

+ 4 - 0
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"
 }
 

+ 3 - 1
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"
 }