Browse Source

wrap system call (to log output)

pull/71/head
gmarik 15 years ago
parent
commit
d5e7f95121
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      autoload/vundle/installer.vim

+ 5
- 1
autoload/vundle/installer.vim View File

@ -122,10 +122,14 @@ func! s:sync(bang, bundle) abort
let cmd = 'git clone '.a:bundle.uri.' '.shellescape(a:bundle.path())
endif
call system(cmd)
call s:system(cmd)
if 0 != v:shell_error
return [v:shell_error, 'error']
end
return [0, 'ok']
endf
func! s:system(cmd) abort
let output = system(a:cmd)
endf

Loading…
Cancel
Save