wrap system call (to log output)

This commit is contained in:
gmarik 2011-07-30 18:46:17 -05:00
parent 49f152de21
commit d5e7f95121

View File

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