Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
exit persistent post run when executor has non-zero exitcode
Browse files Browse the repository at this point in the history
kraashen committed Oct 19, 2023
1 parent f714c5d commit 23c16fa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/commands/root.go
Original file line number Diff line number Diff line change
@@ -84,7 +84,9 @@ func (e *Executor) persistentPostRun(_ *cobra.Command, _ []string) error {
trace.Stop()
}

os.Exit(e.exitCode)
if e.exitCode != exitcodes.Success {
os.Exit(e.exitCode)
}

return nil
}

0 comments on commit 23c16fa

Please sign in to comment.