Skip to content

Commit e7f86e1

Browse files
author
bajins
committed
fixed 执行结果[]byte转string
1 parent 8093888 commit e7f86e1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

task.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ func startTask(task *TaskQueue) {
4141
return
4242
}
4343
out, err := exec.Command("/bin/sh", filePath).Output()
44-
log.Println(filePath, "执行结果:", out)
44+
log.Println(filePath, "执行结果:", string(out))
45+
utils.Log2file(fmt.Sprintf("%s执行结果:%s", filePath, string(out)), GetLogName(task.Id))
4546
if err == nil {
4647
utils.Log2file(fmt.Sprintf("部署成功:%s", filePath), GetLogName(task.Id))
4748
} else {

0 commit comments

Comments
 (0)