Skip to content

Commit 627edfc

Browse files
author
bajins
committed
update
1 parent 9687689 commit 627edfc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

task.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ func startTask(task *TaskQueue) {
3333
commands := config[task.Id].Commands
3434
running = true
3535
for _, v := range commands {
36-
cmd := exec.Command("/bin/sh", v)
37-
_, err := cmd.Output()
36+
_, err := exec.Command("/bin/sh", v).Output()
3837
if err == nil {
3938
utils.Log2file(fmt.Sprintf("部署成功:%s", v), GetLogName(task.Id))
4039
} else {

0 commit comments

Comments
 (0)