health/provider.vim: Fix system([]) invocations.

Closes #5435
This commit is contained in:
Justin M. Keyes 2016-10-13 15:09:16 +02:00
parent 5060ebc5d0
commit 294c0ba014

View File

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