Browse Source

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.
pull/191/head
Zeux 14 years ago
parent
commit
1a935a259b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      autoload/vundle/scripts.vim

+ 1
- 1
autoload/vundle/scripts.vim View File

@ -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


Loading…
Cancel
Save