From 65e81872acfd53dd7d740b984e4e561b0ee885fe Mon Sep 17 00:00:00 2001 From: Roey Darwish Dror Date: Mon, 21 Jan 2019 20:12:20 +0200 Subject: [PATCH] Fix retrival of Powershell profile path --- src/steps/os/windows.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/steps/os/windows.rs b/src/steps/os/windows.rs index d45f92ed..2a6763fe 100644 --- a/src/steps/os/windows.rs +++ b/src/steps/os/windows.rs @@ -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),