We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30fd19f commit 78d2499Copy full SHA for 78d2499
build.rs
@@ -60,7 +60,7 @@ pub fn find_executable(name: &str) -> Option<PathBuf> {
60
let cmd = Command::new(WHICH).arg(name).output().ok()?;
61
if cmd.status.success() {
62
let stdout = String::from_utf8_lossy(&cmd.stdout);
63
- Some(stdout.trim().into())
+ stdout.trim().lines().next().map(|l| l.trim().into())
64
} else {
65
None
66
}
0 commit comments