Merge pull request #191 from zeux/master
Fix wget/win32 codepath for script searching.
This commit is contained in:
		
						commit
						8e9b933ed4
					
				@ -163,7 +163,7 @@ func! s:fetch_scripts(to)
 | 
				
			|||||||
    let temp = shellescape(tempname())
 | 
					    let temp = shellescape(tempname())
 | 
				
			||||||
    let cmd = 'wget -q -O '.temp.' '.l:vim_scripts_json. ' && mv -f '.temp.' '.shellescape(a:to)
 | 
					    let cmd = 'wget -q -O '.temp.' '.l:vim_scripts_json. ' && mv -f '.temp.' '.shellescape(a:to)
 | 
				
			||||||
    if (has('win32') || has('win64')) 
 | 
					    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
 | 
					      let cmd = '"'.cmd.'"'                         " enclose in quotes so && joined cmds work
 | 
				
			||||||
    end
 | 
					    end
 | 
				
			||||||
  else
 | 
					  else
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user