fix: update args
This commit is contained in:
parent
1f85089c79
commit
fba73dd33a
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue