fix: return unsuccessful code on failure (#2077)

This commit is contained in:
Elio Bischof 2021-07-27 12:12:49 +02:00 committed by GitHub
parent 93ad1daa69
commit e546988d2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,6 +2,7 @@ package cmds
import (
"context"
"os"
"github.com/caos/orbos/mntr"
"github.com/caos/orbos/pkg/git"
@ -40,6 +41,7 @@ func RootCommand(version string) (*cobra.Command, GetRootValues) {
ErrFunc: func(err error) error {
if err != nil {
monitor.Error(err)
os.Exit(1)
}
return nil
},