fix: remove update output
This commit is contained in:
parent
fba73dd33a
commit
6631d4985e
|
@ -37,11 +37,9 @@ func Update() *cobra.Command {
|
|||
|
||||
// exec update
|
||||
repo := fmt.Sprintf("gitter.top/coco/bootstrap/coco/...@%s", commitID)
|
||||
if output, err := runtime.Exec("go", "install", repo); err != nil {
|
||||
if _, err := runtime.Exec("go", "install", repo); err != nil {
|
||||
logrus.Errorf("update coco failed: %v", err)
|
||||
return
|
||||
} else {
|
||||
logrus.Infof("%s", output)
|
||||
}
|
||||
|
||||
config.Version = commitID
|
||||
|
|
Loading…
Reference in New Issue