Browse Source

Add explicit exit

Oren Novotny 8 years ago
parent
commit
7e017a1f92
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Rx.NET/Source/build-new.ps1

+ 4 - 0
Rx.NET/Source/build-new.ps1

@@ -57,6 +57,7 @@ if ($LastExitCode -ne 0) {
         Write-Host "Error with build" -Foreground Red
         if($isAppVeyor) {
           $host.SetShouldExit($LastExitCode)
+	  exit $LastExitCode
         }  
 }
 
@@ -92,6 +93,7 @@ if($hasSignClientSecret) {
         Write-Host "Error signing $nupkg" -Foreground Red
         if($isAppVeyor) {
           $host.SetShouldExit($LastExitCode)
+	  exit $LastExitCode
         }  
     }
     Write-Host "Finished signing $nupkg"
@@ -115,6 +117,7 @@ if ($LastExitCode -ne 0) {
 	Write-Host "Error with tests" -Foreground Red
 	if($isAppVeyor) {
 	  $host.SetShouldExit($LastExitCode)
+	  exit $LastExitCode
 	}  
 }
 
@@ -125,6 +128,7 @@ if ($LastExitCode -ne 0) {
 	Write-Host "Error with tests" -Foreground Red
 	if($isAppVeyor) {
 	  $host.SetShouldExit($LastExitCode)
+	  exit $LastExitCode
 	}  
 }