mirror of
https://github.com/neovim/neovim.git
synced 2026-04-21 23:05:41 +00:00
fix(checkhealth): don't wrap command in cmd.exe (#38158)
This was introduced in #6608 and is unnecessary since #9516 and #31109.
This commit is contained in:
@@ -216,10 +216,7 @@ local function node()
|
|||||||
manager = 'pnpm'
|
manager = 'pnpm'
|
||||||
end
|
end
|
||||||
|
|
||||||
local latest_npm_cmd = (
|
local latest_npm_cmd = { manager, 'info', 'neovim', '--json' }
|
||||||
iswin and { 'cmd', '/c', manager, 'info', 'neovim', '--json' }
|
|
||||||
or { manager, 'info', 'neovim', '--json' }
|
|
||||||
)
|
|
||||||
local latest_npm
|
local latest_npm
|
||||||
ok, latest_npm = cmd_ok(latest_npm_cmd)
|
ok, latest_npm = cmd_ok(latest_npm_cmd)
|
||||||
if not ok or latest_npm:find('^%s$') then
|
if not ok or latest_npm:find('^%s$') then
|
||||||
@@ -904,10 +901,7 @@ local function ruby()
|
|||||||
end
|
end
|
||||||
health.info('Host: ' .. host)
|
health.info('Host: ' .. host)
|
||||||
|
|
||||||
local latest_gem_cmd = (
|
local latest_gem_cmd = { 'gem', 'list', '-ra', '^neovim$' }
|
||||||
iswin and { 'cmd', '/c', 'gem', 'list', '-ra', '"^^neovim$"' }
|
|
||||||
or { 'gem', 'list', '-ra', '^neovim$' }
|
|
||||||
)
|
|
||||||
local ok, latest_gem = cmd_ok(latest_gem_cmd)
|
local ok, latest_gem = cmd_ok(latest_gem_cmd)
|
||||||
if not ok or latest_gem:find('^%s*$') then
|
if not ok or latest_gem:find('^%s*$') then
|
||||||
health.error(
|
health.error(
|
||||||
|
|||||||
Reference in New Issue
Block a user