Support spaces in the editor path
This commit is contained in:
parent
649b01ce1c
commit
d33131cd78
|
@ -39,6 +39,6 @@ end {
|
||||||
if( $Path ) { $arguments = "$arguments" }
|
if( $Path ) { $arguments = "$arguments" }
|
||||||
|
|
||||||
if( $PSCmdlet.ShouldProcess( "Edit ($editor): $arguments" ) ) {
|
if( $PSCmdlet.ShouldProcess( "Edit ($editor): $arguments" ) ) {
|
||||||
Invoke-ExpressionEx -sudo:$sudo $editor "$arguments"
|
Invoke-ExpressionEx -sudo:$sudo "& `"$editor`"" "$arguments"
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue