fix: update args

This commit is contained in:
Young Xu 2023-01-01 23:58:28 +08:00
parent 1f85089c79
commit fba73dd33a
Signed by: xuthus5
GPG Key ID: A23CF9620CBB55F9
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ func Update() *cobra.Command {
// exec update
repo := fmt.Sprintf("gitter.top/coco/bootstrap/coco/...@%s", commitID)
if output, err := runtime.Exec("go", "build", "-o", "coco", repo); err != nil {
if output, err := runtime.Exec("go", "install", repo); err != nil {
logrus.Errorf("update coco failed: %v", err)
return
} else {