Skip to content

Commit

Permalink
Fix shell issue
Browse files Browse the repository at this point in the history
  • Loading branch information
willcrichton committed Sep 25, 2024
1 parent ad35cf0 commit 9cbeb65
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rs/crates/rq-core/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ use cfg_if::cfg_if;

#[cfg(unix)]
fn get_user_env() -> HashMap<String, String> {
let shell = env!("SHELL");
use std::env;

let shell = env::var("SHELL").unwrap_or_else(|_| String::from("sh"));
let output = Command::new(shell)
.args(["-c", "env"])
.output()
Expand Down

0 comments on commit 9cbeb65

Please sign in to comment.