mirror of
https://github.com/junegunn/vim-plug.git
synced 2025-12-10 19:01:50 +08:00
Throw v:shell_error when system() output is empty
This commit is contained in:
2
plug.vim
2
plug.vim
@@ -1044,7 +1044,7 @@ function! s:upgrade()
|
|||||||
if executable('curl')
|
if executable('curl')
|
||||||
let output = system(printf('curl -fLo %s %s', s:shellesc(new), s:plug_source))
|
let output = system(printf('curl -fLo %s %s', s:shellesc(new), s:plug_source))
|
||||||
if v:shell_error
|
if v:shell_error
|
||||||
throw get(split(output, '\n'), -1, '')
|
throw get(split(output, '\n'), -1, v:shell_error)
|
||||||
endif
|
endif
|
||||||
elseif has('ruby')
|
elseif has('ruby')
|
||||||
ruby << EOF
|
ruby << EOF
|
||||||
|
|||||||
Reference in New Issue
Block a user