This commit is contained in:
ryanmao 2020-10-09 14:38:09 +08:00
parent dd9640da12
commit 5a66b7da90

View File

@ -146,6 +146,7 @@ func (c *RunTask) runs(pgn *model.TPlugin) (rterr error) {
println("cmd.run err:" + err.Error())
rn.State = 2
}
println(fmt.Sprintf("cmdRun(%s)dir:%s", pgn.Title, cmd.Dir))
if cmd.ProcessState != nil {
rn.Excode = cmd.ProcessState.ExitCode()
}