Skip to content

Commit

Permalink
fix(linux): don't separate arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
GreasySlug committed Nov 14, 2024
1 parent c9b803a commit 2febb71
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions crates/erg_common/python_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -655,11 +655,7 @@ pub fn _opt_which_python() -> Result<String, String> {
.arg("python")
.output()
} else {
Command::new("sh")
.arg("-c")
.arg("which")
.arg("python3")
.output()
Command::new("sh").arg("-c").arg("which python3").output()
};
let Ok(out) = out else {
return Err(format!("{}: python not found", fn_name_full!()));
Expand Down

0 comments on commit 2febb71

Please sign in to comment.