This commit is contained in:
Alen Masic 2018-11-16 17:31:59 +01:00
parent 8e62d21c25
commit 2a2554e7a3

View file

@ -2187,7 +2187,7 @@ GLOBAL OPTIONS:
if len(words) == 0 { if len(words) == 0 {
continue continue
} }
NewEvent("shell", words[0]).SetAuthor(myself).SetArg("interactive", true).SetArg("args", words[1:]).Log(db) NewEvent("shell", words[0]).SetArg("interactive", true).SetArg("args", words[1:]).Log(db)
if err := app.Run(append([]string{"config"}, words...)); err != nil { if err := app.Run(append([]string{"config"}, words...)); err != nil {
if cliErr, ok := err.(*cli.ExitError); ok { if cliErr, ok := err.(*cli.ExitError); ok {
if cliErr.ExitCode() != 0 { if cliErr.ExitCode() != 0 {