fix: return unsuccessful code on failure (#2077)

This commit is contained in:
Elio Bischof
2021-07-27 10:12:49 +00:00
committed by GitHub
parent 93ad1daa69
commit e546988d2f
+2
View File
@@ -2,6 +2,7 @@ package cmds
import ( import (
"context" "context"
"os"
"github.com/caos/orbos/mntr" "github.com/caos/orbos/mntr"
"github.com/caos/orbos/pkg/git" "github.com/caos/orbos/pkg/git"
@@ -40,6 +41,7 @@ func RootCommand(version string) (*cobra.Command, GetRootValues) {
ErrFunc: func(err error) error { ErrFunc: func(err error) error {
if err != nil { if err != nil {
monitor.Error(err) monitor.Error(err)
os.Exit(1)
} }
return nil return nil
}, },