From d5e7f95121455c902d01f7a68ad5183820a80cf6 Mon Sep 17 00:00:00 2001 From: gmarik Date: Sat, 30 Jul 2011 18:46:17 -0500 Subject: [PATCH] wrap system call (to log output) --- autoload/vundle/installer.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/autoload/vundle/installer.vim b/autoload/vundle/installer.vim index 4e940d9..58a7854 100644 --- a/autoload/vundle/installer.vim +++ b/autoload/vundle/installer.vim @@ -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