Fix shellesc()
This commit is contained in:
parent
6b45d873bc
commit
4472ffa078
@ -252,9 +252,7 @@ endf
|
|||||||
|
|
||||||
func! vundle#installer#shellesc(cmd) abort
|
func! vundle#installer#shellesc(cmd) abort
|
||||||
if ((has('win32') || has('win64')) && empty(matchstr(&shell, 'sh')))
|
if ((has('win32') || has('win64')) && empty(matchstr(&shell, 'sh')))
|
||||||
if &shellxquote != '(' " workaround for patch #445
|
return '"' . substitute(a:cmd, '"', '\\"', 'g') . '"'
|
||||||
return '"'.a:cmd.'"' " enclose in quotes so && joined cmds work
|
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
return shellescape(a:cmd)
|
return shellescape(a:cmd)
|
||||||
endf
|
endf
|
||||||
|
Loading…
Reference in New Issue
Block a user