diff --git a/jobs/job.go b/jobs/job.go index d161cdc..4ab6665 100644 --- a/jobs/job.go +++ b/jobs/job.go @@ -76,9 +76,9 @@ func NewCommandJob(id int, name string, command string) *Job { //cmd := exec.Command("/bin/bash", "-c", command) var cmd *exec.Cmd if runtime.GOOS == "windows" { - cmd = exec.Command("sh", "-c", command) - } else { cmd = exec.Command("CMD", "/C", command) + } else { + cmd = exec.Command("sh", "-c", command) } cmd.Stdout = bufOut cmd.Stderr = bufErr diff --git a/views/tasklog/detail.html b/views/tasklog/detail.html index 14ec727..e2f6e75 100644 --- a/views/tasklog/detail.html +++ b/views/tasklog/detail.html @@ -67,7 +67,7 @@
执行输出
-
{{.taskLog.ouput}}
+
{{.taskLog.output}}