mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
parent
5060ebc5d0
commit
294c0ba014
@ -34,7 +34,7 @@ endfunction
|
|||||||
function! s:download(url) abort
|
function! s:download(url) abort
|
||||||
let content = ''
|
let content = ''
|
||||||
if executable('curl')
|
if executable('curl')
|
||||||
let content = system(['curl', '-sL', "'", a:url, "'"])
|
let content = system(['curl', '-sL', a:url])
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if empty(content) && executable('python')
|
if empty(content) && executable('python')
|
||||||
@ -50,7 +50,7 @@ function! s:download(url) abort
|
|||||||
\except Exception:\n
|
\except Exception:\n
|
||||||
\ pass\n
|
\ pass\n
|
||||||
\"
|
\"
|
||||||
let content = system(['python', '-c', "'", script, "'", '2>/dev/null'])
|
let content = system(['python', '-c', script, '2>/dev/null'])
|
||||||
endif
|
endif
|
||||||
|
|
||||||
return content
|
return content
|
||||||
|
Loading…
Reference in New Issue
Block a user