Fix rustup and cargo install-update execution

This commit is contained in:
Zykino 2023-01-14 22:56:58 +01:00
parent 118640ec1c
commit 08e5e6f5a3

View File

@ -148,6 +148,7 @@ impl Cmd {
let mut cmd = Command::new(&self.exe); let mut cmd = Command::new(&self.exe);
cmd.args(&self.params) cmd.args(&self.params)
.env_clear() .env_clear()
.env("PATH", std::env!("PATH"))
.envs(&self.env) .envs(&self.env)
// .stdout(cfg) // .stdout(cfg)
// .stderr(cfg) // .stderr(cfg)