diff options
author | John McCrae <john.mccrae@progress.com> | 2022-05-25 03:14:01 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-25 03:14:01 +0000 |
commit | 732344557d032e062c49cf84b29dfcd4ac138106 (patch) | |
tree | 534b0a6eb92514e958fddfb066d3ebb2977a611a | |
parent | a5e6b4e47c82fc9e741192006b98d0dec237c1fe (diff) | |
parent | ad6a0eb0f3e930e25e207a596de279bd5764eea8 (diff) | |
download | chef-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.ps1 | 2 |
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 } |