summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McCrae <john.mccrae@progress.com>2022-05-25 03:14:01 +0000
committerGitHub <noreply@github.com>2022-05-25 03:14:01 +0000
commit732344557d032e062c49cf84b29dfcd4ac138106 (patch)
tree534b0a6eb92514e958fddfb066d3ebb2977a611a
parenta5e6b4e47c82fc9e741192006b98d0dec237c1fe (diff)
parentad6a0eb0f3e930e25e207a596de279bd5764eea8 (diff)
downloadchef-732344557d032e062c49cf84b29dfcd4ac138106.tar.gz
Merge pull request #12918 from chef/jfm/omnibus_update
updating throw statement to only execute on non-zero exit codes
-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 }