summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McCrae <jmccrae@chf.io>2022-05-25 08:09:33 +0600
committerJohn McCrae <jmccrae@chf.io>2022-05-25 08:09:33 +0600
commitad6a0eb0f3e930e25e207a596de279bd5764eea8 (patch)
tree534b0a6eb92514e958fddfb066d3ebb2977a611a
parenta5e6b4e47c82fc9e741192006b98d0dec237c1fe (diff)
downloadchef-ad6a0eb0f3e930e25e207a596de279bd5764eea8.tar.gz
updating throw statement to only execute on non-zero exit codes
Signed-off-by: John McCrae <jmccrae@chf.io>
-rw-r--r--omnibus/omnibus-test.ps12
1 files changed, 1 insertions, 1 deletions
diff --git a/omnibus/omnibus-test.ps1 b/omnibus/omnibus-test.ps1
index 71af497dd1..3b7c99c434 100644
--- a/omnibus/omnibus-test.ps1
+++ b/omnibus/omnibus-test.ps1
@@ -122,4 +122,4 @@ If ($lastexitcode -ne 0) { $exit = 1 }
Write-Output "Last exit code: $lastexitcode"
Write-Output ""
-Throw $exit
+If ($exit -ne 0) { Throw $exit }