Skip to content

Commit

Permalink
Non-zero exit code on error (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
alenkacz committed Apr 23, 2021
1 parent 7a2eb4a commit 825cec0
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions cmd/ctl/main.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
package main

import "github.com/alenkacz/cert-manager-verifier/pkg/cmd/verify"
import (
"os"

"github.com/alenkacz/cert-manager-verifier/pkg/cmd/verify"
)

func main() {
verify.NewCmd().Execute()
err := verify.NewCmd().Execute()
if err != nil {
os.Exit(1)
}
}

0 comments on commit 825cec0

Please sign in to comment.