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),