Fix retrival of Powershell profile path

This commit is contained in:
Roey Darwish Dror
2019-01-21 20:12:20 +02:00
parent e9d76d185b
commit 65e81872ac

View File

@@ -67,7 +67,7 @@ impl Powershell {
let result = Command::new(powershell)
.args(&["-Command", "echo $profile"])
.check_output()
.map(PathBuf::from);
.map(|output| PathBuf::from(output.trim()));
match result {
Err(e) => error!("Error getting Powershell profile: {}", e),