fix formatting

macos-click-through
Keith Simmons 4 years ago
parent 4d4e97b519
commit 3aceaaaa62

@ -141,7 +141,11 @@ fn main() {
"(source /etc/profile && source {} && echo $PATH)", "(source /etc/profile && source {} && echo $PATH)",
profile_path.to_str().unwrap() profile_path.to_str().unwrap()
); );
if let Ok(path) = std::process::Command::new(shell).arg("-c").arg(cmd).output() { if let Ok(path) = std::process::Command::new(shell)
.arg("-c")
.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());
} }
} }

Loading…
Cancel
Save