]> source.dussan.org Git - gitea.git/commitdiff
Cert command stub should return a non-zero exit code
authorWill Glynn <will@willglynn.com>
Sun, 30 Nov 2014 03:52:59 +0000 (21:52 -0600)
committerWill Glynn <will@willglynn.com>
Sun, 30 Nov 2014 03:52:59 +0000 (21:52 -0600)
cmd/cert_stub.go

index 2029f4cbceb40526062032035cdedf66d54523d2..69c9821e0276eb35c9b8d628a5e0cd191742d8fd 100644 (file)
@@ -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)
 }