From: Will Glynn Date: Sun, 30 Nov 2014 03:52:59 +0000 (-0600) Subject: Cert command stub should return a non-zero exit code X-Git-Tag: v0.9.99~1614^2^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3e528f34af62cd8d62aa5ecaf98e4c043a9ff3df;p=gitea.git Cert command stub should return a non-zero exit code --- diff --git a/cmd/cert_stub.go b/cmd/cert_stub.go index 2029f4cbce..69c9821e02 100644 --- a/cmd/cert_stub.go +++ b/cmd/cert_stub.go @@ -8,6 +8,7 @@ package cmd import ( "fmt" + "os" "time" "github.com/codegangsta/cli" @@ -31,4 +32,5 @@ Outputs to 'cert.pem' and 'key.pem' and will overwrite existing files.`, func runCert(ctx *cli.Context) { fmt.Println("Command cert not available, please use build tags 'cert' to rebuild.") + os.Exit(1) }