diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-02-14 03:43:28 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-14 00:43:28 -0800 |
commit | 1b200d99360c1a4737f1d36206f3385a77d7d93e (patch) | |
tree | 1507b019aba261be0b40bd5598123ebd05ec99a5 | |
parent | d9657b3ae206435d93dacb2025d9b600da975088 (diff) | |
download | rneovim-1b200d99360c1a4737f1d36206f3385a77d7d93e.tar.gz rneovim-1b200d99360c1a4737f1d36206f3385a77d7d93e.tar.bz2 rneovim-1b200d99360c1a4737f1d36206f3385a77d7d93e.zip |
checkhealth: ignore cpamn "!" output #11869
cpanm outputs a warning that suggest to use 'sudo' or use local::lib.
cpanm exits with 0 so nvim thinks that the command worked.
cpanm output that starts with "!" is likely an error.
Close #11858
-rw-r--r-- | runtime/autoload/health/provider.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/autoload/health/provider.vim b/runtime/autoload/health/provider.vim index 1d720b5876..601a8f83ef 100644 --- a/runtime/autoload/health/provider.vim +++ b/runtime/autoload/health/provider.vim @@ -708,9 +708,9 @@ function! s:check_perl() abort endif call health#report_info('Nvim perl host: '. host) - let latest_cpan_cmd = 'cpanm --info Neovim::Ext' + let latest_cpan_cmd = 'cpanm --info -q Neovim::Ext' let latest_cpan = s:system(latest_cpan_cmd) - if s:shell_error || empty(latest_cpan) + if s:shell_error || empty(latest_cpan) || latest_cpan[0] ==# '!' call health#report_error('Failed to run: '. latest_cpan_cmd, \ ["Make sure you're connected to the internet.", \ 'Are you behind a firewall or proxy?']) |