From 749ec129da0d2aabc59b993e751870c0a73dc9c9 Mon Sep 17 00:00:00 2001 From: gmarik Date: Sat, 19 Mar 2011 13:40:47 -0500 Subject: [PATCH] fetch and replace in single run --- autoload/vundle/scripts.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/vundle/scripts.vim b/autoload/vundle/scripts.vim index 8b77bae..c7be30c 100644 --- a/autoload/vundle/scripts.vim +++ b/autoload/vundle/scripts.vim @@ -29,8 +29,8 @@ endf func! s:fetch_scripts(to) let temp = tempname() - exec '!curl http://vim-scripts.org/api/scripts.json > '.temp - exec '!mkdir -p $(dirname '.a:to.') && mv -f '.temp.' '.a:to + exec '!curl http://vim-scripts.org/api/scripts.json > '.temp. + \ '&& mkdir -p $(dirname '.a:to.') && mv -f '.temp.' '.a:to endf func! s:load_scripts(bang)