From 1a935a259b95317e4d7c3a3450351504635b4aa8 Mon Sep 17 00:00:00 2001 From: Zeux Date: Fri, 6 Jul 2012 13:48:52 +0400 Subject: [PATCH] Fix wget/win32 codepath for script searching. The codepath does not appear to have been tested; mv on Win32 is move, and substitute has 4 arguments instead of 3. --- autoload/vundle/scripts.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/vundle/scripts.vim b/autoload/vundle/scripts.vim index a7ef724..53a77e1 100644 --- a/autoload/vundle/scripts.vim +++ b/autoload/vundle/scripts.vim @@ -163,7 +163,7 @@ func! s:fetch_scripts(to) let temp = shellescape(tempname()) let cmd = 'wget -q -O '.temp.' '.l:vim_scripts_json. ' && mv -f '.temp.' '.shellescape(a:to) if (has('win32') || has('win64')) - let cmd = substitute(cmd, 'mv -f ', 'mv /Y ') " change force flag + let cmd = substitute(cmd, 'mv -f ', 'move /Y ', '') " change force flag let cmd = '"'.cmd.'"' " enclose in quotes so && joined cmds work end else