diff options
author | JingMatrix <jingmatrix@gmail.com> | 2023-04-16 12:39:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-16 12:39:48 +0200 |
commit | 7f94a032e1cfb662f0c5df15e60b1ebdc3e15c4b (patch) | |
tree | b8af0822253374aff9b6c83baffac03c8d813697 | |
parent | fd68cd1c0aa7b3074ed8b316a354bf17111cf0b3 (diff) | |
download | rneovim-7f94a032e1cfb662f0c5df15e60b1ebdc3e15c4b.tar.gz rneovim-7f94a032e1cfb662f0c5df15e60b1ebdc3e15c4b.tar.bz2 rneovim-7f94a032e1cfb662f0c5df15e60b1ebdc3e15c4b.zip |
fix(checkhealth): shell_error and cpanm module
shell_error is a function, the code missed parentheses
The actual module for perl module version is App::cpanminus::script, not
App::cpanminus::fatscript.
-rw-r--r-- | runtime/lua/provider/health.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/lua/provider/health.lua b/runtime/lua/provider/health.lua index 1c882de222..3a60e38fe5 100644 --- a/runtime/lua/provider/health.lua +++ b/runtime/lua/provider/health.lua @@ -850,7 +850,7 @@ local function perl() local latest_cpan_cmd = { perl_exec, - '-MApp::cpanminus::fatscript', + '-MApp::cpanminus::script', '-e', 'my $app = App::cpanminus::script->new; $app->parse_options ("--info", "-q", "Neovim::Ext"); exit $app->doit', } @@ -886,7 +886,7 @@ local function perl() local current_cpan_cmd = { perl_exec, '-W', '-MNeovim::Ext', '-e', 'print $Neovim::Ext::VERSION' } local current_cpan = system(current_cpan_cmd) - if shell_error then + if shell_error() then error( 'Failed to run: ' .. table.concat(current_cpan_cmd, ' '), { 'Report this issue with the output of: ', table.concat(current_cpan_cmd, ' ') } |