mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-11-30 10:48:15 +08:00
no message
This commit is contained in:
parent
f61eed20a7
commit
d34b69f9dd
@ -162,8 +162,8 @@ func clone(gitURL string, sourceDir string, logger event.Logger, repo string) er
|
||||
return err
|
||||
}
|
||||
}
|
||||
logrus.Debugf("pull: %s", fmt.Sprintf("cd %s & git pull", sourceDir))
|
||||
mm := []string{"-P", "cd", sourceDir, "&", "git", "pull"}
|
||||
logrus.Debugf("pull: %s", fmt.Sprintf("cd %s & sudo -P git pull", sourceDir))
|
||||
mm := []string{"-P", "cd", sourceDir, "&", "sudo", "-P", "git", "pull"}
|
||||
if err := ShowExec("sudo", mm, logger); err != nil {
|
||||
return err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user