Skip to content

Commit

Permalink
exit persistent post run when executor has non-zero exitcode
Browse files Browse the repository at this point in the history
  • Loading branch information
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
Expand Up @@ -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
}
Expand Down

0 comments on commit 23c16fa

Please sign in to comment.