diff --git a/cmd/main.go b/cmd/main.go index da57d3c..10d6dc3 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -110,10 +110,9 @@ func main() { Stdout: os.Stdout, Stderr: os.Stderr, } - err = cmd.Run() - if err != nil { + if err := cmd.Run(); err != nil { if exitError, ok := err.(*exec.ExitError); ok { - exitError.ExitCode() + os.Exit(exitError.ExitCode()) } } }