Browse Source

CHANGED: Refactored run and log calls

pull/267/head
Timo Sand 13 years ago
parent
commit
c529fc3e65
1 changed files with 10 additions and 5 deletions
  1. +10
    -5
      autoload/vundle/installer.vim

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

@ -223,11 +223,7 @@ func! s:sync(bang, bundle) abort
let initial_sha = ''
endif
let out = s:system(cmd)
call s:log('')
call s:log('Bundle '.a:bundle.name_spec)
call s:log('$ '.cmd)
call s:log('> '.out)
call s:run_and_log(a:bundle, cmd)
if 0 != v:shell_error
return 'error'
@ -247,6 +243,15 @@ func! s:sync(bang, bundle) abort
return 'updated'
endf
func! s:run_and_log(bundle, cmd)
let out = s:system(a:cmd)
call s:log('')
call s:log('Bundle '.a:bundle.name_spec)
call s:log('$ '.a:cmd)
call s:log('> '.out)
endf
func! g:shellesc(cmd) abort
if (has('win32') || has('win64'))
if &shellxquote != '(' " workaround for patch #445


Loading…
Cancel
Save