Skip to content

Commit

Permalink
fix exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
tkuchiki committed Jan 23, 2017
1 parent f616551 commit 795a12f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var (
)

func main() {
kingpin.Version("0.1.0")
kingpin.Version("0.1.1")
kingpin.Parse()

if *fileNum < 1 {
Expand Down Expand Up @@ -70,9 +70,11 @@ func main() {

c.stdoutLog = fout

_, cerr := c.runCommand()
exitCode, cerr := c.runCommand()

if cerr != nil {
log.Fatal(cerr)
}

os.Exit(exitCode)
}

0 comments on commit 795a12f

Please sign in to comment.