We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9687689 commit 627edfcCopy full SHA for 627edfc
task.go
@@ -33,8 +33,7 @@ func startTask(task *TaskQueue) {
33
commands := config[task.Id].Commands
34
running = true
35
for _, v := range commands {
36
- cmd := exec.Command("/bin/sh", v)
37
- _, err := cmd.Output()
+ _, err := exec.Command("/bin/sh", v).Output()
38
if err == nil {
39
utils.Log2file(fmt.Sprintf("部署成功:%s", v), GetLogName(task.Id))
40
} else {
0 commit comments