Trim newlines from end of path on macOS

macos-click-through
ViViDboarder 3 years ago
parent 3efc3c1759
commit 5502f3137c

@ -209,7 +209,10 @@ fn handle_macos() {
.arg(cmd)
.output()
{
env::set_var("PATH", std::str::from_utf8(&path.stdout).unwrap());
env::set_var(
"PATH",
std::str::from_utf8(&path.stdout).unwrap().trim_end(),
);
}
}
}

Loading…
Cancel
Save