mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-06-27 19:24:13 +00:00
fix(health): when executing commands show "command not found" on Windows platform.
This commit is contained in:
parent
9d445ebbd8
commit
a0a392935a
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ function M.have(cmd, opts)
|
|||
local found
|
||||
for _, c in ipairs(cmd) do
|
||||
if vim.fn.executable(c) == 1 then
|
||||
local version = vim.fn.system(c .. " " .. opts.version) or ""
|
||||
local version = vim.fn.system([["]] .. c .. " " .. opts.version .. [["]]) or ""
|
||||
if vim.v.shell_error ~= 0 then
|
||||
opts.error(("failed to get version of {%s}\n%s"):format(c, version))
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue