Support spaces in the editor path

This commit is contained in:
itadmin 2021-06-29 19:44:18 +00:00
parent 649b01ce1c
commit d33131cd78
1 changed files with 1 additions and 1 deletions

View File

@ -39,6 +39,6 @@ end {
if( $Path ) { $arguments = "$arguments" }
if( $PSCmdlet.ShouldProcess( "Edit ($editor): $arguments" ) ) {
Invoke-ExpressionEx -sudo:$sudo $editor "$arguments"
Invoke-ExpressionEx -sudo:$sudo "& `"$editor`"" "$arguments"
}
}