summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McCrae <john.mccrae@progress.com>2022-12-22 09:52:46 -0800
committerGitHub <noreply@github.com>2022-12-22 09:52:46 -0800
commita8511b9db33ac0299821a88dc6d749ec34aa3081 (patch)
tree64e6bc8b67be4826b1d8f1bdb4e2a2027b3765bd
parent5679a283b25cefc9f763614be0ded3fc71a7218b (diff)
parentabdb60585da12e19252d04ece38d18265c3bdd93 (diff)
downloadchef-a8511b9db33ac0299821a88dc6d749ec34aa3081.tar.gz
Merge pull request #13460 from chef/jfm/chef16_omnibus_error
Tweaking omnibus-test to fail properly on Windows
-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 e7c35cf8f9..d9a549f89f 100644
--- a/omnibus/omnibus-test.ps1
+++ b/omnibus/omnibus-test.ps1
@@ -146,4 +146,4 @@ If ($lastexitcode -ne 0) { $exit = 1 }
Write-Output "Last exit code: $lastexitcode"
Write-Output ""
-Throw $exit
+If ($exit -ne 0) { Throw $exit }