2222 redraw |
2222 redraw |
2223 let tmp = tempname() |
2223 let tmp = tempname() |
2224 let new = tmp . '/plug.vim' |
2224 let new = tmp . '/plug.vim' |
2225 |
2225 |
2226 try |
2226 try |
2227 let out = s:system(printf('git clone --depth 1 %s %s', s:plug_src, tmp)) |
2227 let out = s:system(printf('git clone --depth 1 %s %s', s:shellesc(s:plug_src), s:shellesc(tmp))) |
2228 if v:shell_error |
2228 if v:shell_error |
2229 return s:err('Error upgrading vim-plug: '. out) |
2229 return s:err('Error upgrading vim-plug: '. out) |
2230 endif |
2230 endif |
2231 |
2231 |
2232 if readfile(s:me) ==# readfile(new) |
2232 if readfile(s:me) ==# readfile(new) |