diff --git a/src/steps/powershell.rs b/src/steps/powershell.rs index f1090a86..a936bc79 100644 --- a/src/steps/powershell.rs +++ b/src/steps/powershell.rs @@ -21,7 +21,7 @@ impl Powershell { let profile = path.as_ref().and_then(|path| { Command::new(path) - .args(&["-Command", "echo $profile"]) + .args(&["-Command", "Split-Path $profile"]) .check_output() .map(|output| PathBuf::from(output.trim())) .and_then(|p| p.require())