|
|
|
@ -61,10 +61,14 @@ func! s:helptags(rtp) abort |
|
|
|
helptags `=a:rtp.'/doc/'` |
|
|
|
endf |
|
|
|
|
|
|
|
|
|
|
|
func! s:installed(bundle) abort |
|
|
|
return !empty(split(globpath(a:bundle.path(), '*'), "\n")) |
|
|
|
endf |
|
|
|
|
|
|
|
func! s:sync(bang, bundle) abort |
|
|
|
if a:bundle.nosync() | return 0 | endif |
|
|
|
let git_dir = expand(a:bundle.path().'/.git') |
|
|
|
if isdirectory(git_dir) |
|
|
|
if a:bundle.installed() |
|
|
|
if !(a:bang) | return 0 | endif |
|
|
|
let cmd = 'cd '.shellescape(a:bundle.path()).' && git pull' |
|
|
|
else |
|
|
|
|