diff --git a/cmd/authelia-scripts/main.go b/cmd/authelia-scripts/main.go index cc475ce94..5f07dde2e 100755 --- a/cmd/authelia-scripts/main.go +++ b/cmd/authelia-scripts/main.go @@ -3,6 +3,8 @@ package main import ( + "log" + "github.com/spf13/cobra" ) @@ -117,5 +119,9 @@ func main() { cobraCommands = append(cobraCommands, command) } rootCmd.AddCommand(cobraCommands...) - rootCmd.Execute() + err := rootCmd.Execute() + + if err != nil { + log.Fatal(err) + } }