fix: remove update output

This commit is contained in:
Young Xu 2023-01-02 00:00:25 +08:00
parent fba73dd33a
commit 6631d4985e
Signed by: xuthus5
GPG Key ID: A23CF9620CBB55F9
1 changed files with 1 additions and 3 deletions

View File

@ -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