From 43456d9dcd4feda4a3fd3860e9aa79d44da6a2ac Mon Sep 17 00:00:00 2001 From: NoahLan <6995syu@163.com> Date: Tue, 19 Dec 2023 22:09:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20ncmd=20=E7=9A=84env?= =?UTF-8?q?=E5=92=8Cdir=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ncmd/cmd.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ncmd/cmd.go b/ncmd/cmd.go index f1820a0..a85afb7 100644 --- a/ncmd/cmd.go +++ b/ncmd/cmd.go @@ -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