From 08e5e6f5a316b670b0935741e7c044270ab57262 Mon Sep 17 00:00:00 2001 From: Zykino Date: Sat, 14 Jan 2023 22:56:58 +0100 Subject: [PATCH] Fix rustup and cargo install-update execution --- src/command.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/command.rs b/src/command.rs index 447b38e..da48fbf 100644 --- a/src/command.rs +++ b/src/command.rs @@ -148,6 +148,7 @@ impl Cmd { let mut cmd = Command::new(&self.exe); cmd.args(&self.params) .env_clear() + .env("PATH", std::env!("PATH")) .envs(&self.env) // .stdout(cfg) // .stderr(cfg)