mirror of
https://github.com/esp-rs/espup.git
synced 2025-09-28 13:20:41 +00:00
fix: 🐛 Make bash path general
This commit is contained in:
parent
a3ae161a79
commit
081eb81baf
@ -202,7 +202,7 @@ impl Installable for XtensaRust {
|
|||||||
&self.host_triple,
|
&self.host_triple,
|
||||||
self.toolchain_destination.display()
|
self.toolchain_destination.display()
|
||||||
);
|
);
|
||||||
cmd!("/bin/bash", "-c", arguments)
|
cmd!("/usr/bin/env", "bash", "-c", arguments)
|
||||||
.into_inner()
|
.into_inner()
|
||||||
.stdout(Stdio::null())
|
.stdout(Stdio::null())
|
||||||
.output()?;
|
.output()?;
|
||||||
@ -220,7 +220,7 @@ impl Installable for XtensaRust {
|
|||||||
get_dist_path("rust-src"),
|
get_dist_path("rust-src"),
|
||||||
self.toolchain_destination.display()
|
self.toolchain_destination.display()
|
||||||
);
|
);
|
||||||
cmd!("/bin/bash", "-c", arguments)
|
cmd!("/usr/bin/env", "bash", "-c", arguments)
|
||||||
.into_inner()
|
.into_inner()
|
||||||
.stdout(Stdio::null())
|
.stdout(Stdio::null())
|
||||||
.output()?;
|
.output()?;
|
||||||
@ -475,7 +475,8 @@ async fn install_rustup(nightly_version: &str, host_triple: &HostTriple) -> Resu
|
|||||||
.output()?;
|
.output()?;
|
||||||
#[cfg(not(windows))]
|
#[cfg(not(windows))]
|
||||||
cmd!(
|
cmd!(
|
||||||
"/bin/bash",
|
"/usr/bin/env",
|
||||||
|
"bash",
|
||||||
rustup_init_path,
|
rustup_init_path,
|
||||||
"--default-toolchain",
|
"--default-toolchain",
|
||||||
nightly_version,
|
nightly_version,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user