Fix unpassed env for windows cmd

This commit is contained in:
crazywhalecc
2026-04-12 23:17:16 +08:00
parent f4918ba92c
commit f8ed1aa86e

View File

@@ -27,7 +27,7 @@ class WindowsCmd extends Shell
$this->last_cmd = $cmd = $this->getExecString($cmd);
// echo $cmd . PHP_EOL;
$this->passthru($cmd, $this->console_putput, $original_command, cwd: $this->cd);
$this->passthru($cmd, $this->console_putput, $original_command, cwd: $this->cd, env: $this->env);
return $this;
}