Commit 545ab8a7 authored by 陈子龙's avatar 陈子龙

自动化运维 立即执行 fix

parent 7ef4e4a4
......@@ -280,7 +280,7 @@ func (t *TaskManageSvc) ExecScript(req request.ExecScriptReq) (err error) {
fmt.Println("捕获标准输出err:", err1)
out = 1
//break
} else {
} else if out == 0 {
fmt.Println("输出正常日志:", lineOut)
}
......@@ -290,7 +290,7 @@ func (t *TaskManageSvc) ExecScript(req request.ExecScriptReq) (err error) {
fmt.Println("捕获标准错误err:", err)
outErr = 1
//break
} else {
} else if outErr == 0 {
fmt.Println("输出错误日志:", lineErr)
}
if out == 1 && outErr == 1 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment