Fix retrival of Powershell profile path
This commit is contained in:
@@ -67,7 +67,7 @@ impl Powershell {
|
|||||||
let result = Command::new(powershell)
|
let result = Command::new(powershell)
|
||||||
.args(&["-Command", "echo $profile"])
|
.args(&["-Command", "echo $profile"])
|
||||||
.check_output()
|
.check_output()
|
||||||
.map(PathBuf::from);
|
.map(|output| PathBuf::from(output.trim()));
|
||||||
|
|
||||||
match result {
|
match result {
|
||||||
Err(e) => error!("Error getting Powershell profile: {}", e),
|
Err(e) => error!("Error getting Powershell profile: {}", e),
|
||||||
|
|||||||
Reference in New Issue
Block a user