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

main v1.2.5
NoahLan 1 year ago
parent 8d2e458d61
commit 43456d9dcd

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

Loading…
Cancel
Save