diff options
author | John McCrae <jmccrae@chf.io> | 2022-05-25 08:09:33 +0600 |
---|---|---|
committer | John McCrae <jmccrae@chf.io> | 2022-05-25 08:09:33 +0600 |
commit | ad6a0eb0f3e930e25e207a596de279bd5764eea8 (patch) | |
tree | 534b0a6eb92514e958fddfb066d3ebb2977a611a /omnibus/omnibus-test.ps1 | |
parent | a5e6b4e47c82fc9e741192006b98d0dec237c1fe (diff) | |
download | chef-ad6a0eb0f3e930e25e207a596de279bd5764eea8.tar.gz |
updating throw statement to only execute on non-zero exit codes
Signed-off-by: John McCrae <jmccrae@chf.io>
Diffstat (limited to 'omnibus/omnibus-test.ps1')
-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 } |