fix: 修复 ncmd 的env和dir的错误

main v1.2.5
NoahLan 5 months ago
parent 8d2e458d61
commit 43456d9dcd

@ -289,8 +289,8 @@ func (c *Cmd) run() {
}
c.stdIn, _ = cmd.StdinPipe()
c.Env = cmd.Env
c.Dir = cmd.Dir
cmd.Env = c.Env
cmd.Dir = c.Dir
// Always close output streams. Do not do this after Wait because if Start
// fails and we return without closing these, it could deadlock the caller

Loading…
Cancel
Save