Skip to content

Commit 2febb71

Browse files
committed
fix(linux): don't separate arguments
1 parent c9b803a commit 2febb71

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

crates/erg_common/python_util.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -655,11 +655,7 @@ pub fn _opt_which_python() -> Result<String, String> {
655655
.arg("python")
656656
.output()
657657
} else {
658-
Command::new("sh")
659-
.arg("-c")
660-
.arg("which")
661-
.arg("python3")
662-
.output()
658+
Command::new("sh").arg("-c").arg("which python3").output()
663659
};
664660
let Ok(out) = out else {
665661
return Err(format!("{}: python not found", fn_name_full!()));

0 commit comments

Comments
 (0)