From 081eb81bafd12b47375bdb99fad18f140e13fdfd Mon Sep 17 00:00:00 2001 From: Sergio Gasquez Date: Tue, 24 Jan 2023 14:41:41 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Make=20bash=20path=20gene?= =?UTF-8?q?ral?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/toolchain/rust.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/toolchain/rust.rs b/src/toolchain/rust.rs index 7acc4e0..aa6f61e 100644 --- a/src/toolchain/rust.rs +++ b/src/toolchain/rust.rs @@ -202,7 +202,7 @@ impl Installable for XtensaRust { &self.host_triple, self.toolchain_destination.display() ); - cmd!("/bin/bash", "-c", arguments) + cmd!("/usr/bin/env", "bash", "-c", arguments) .into_inner() .stdout(Stdio::null()) .output()?; @@ -220,7 +220,7 @@ impl Installable for XtensaRust { get_dist_path("rust-src"), self.toolchain_destination.display() ); - cmd!("/bin/bash", "-c", arguments) + cmd!("/usr/bin/env", "bash", "-c", arguments) .into_inner() .stdout(Stdio::null()) .output()?; @@ -475,7 +475,8 @@ async fn install_rustup(nightly_version: &str, host_triple: &HostTriple) -> Resu .output()?; #[cfg(not(windows))] cmd!( - "/bin/bash", + "/usr/bin/env", + "bash", rustup_init_path, "--default-toolchain", nightly_version,