Skip to content

Commit

Permalink
fix(health): existing packages on windows. Fixes #474
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Feb 1, 2023
1 parent c83563d commit 527f83c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lazy/health.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function M.check()
local existing = false
for _, site in pairs(sites) do
for _, packs in ipairs(vim.fn.expand(site .. "/pack/*", false, true)) do
if not packs:find("/dist$") and vim.loop.fs_stat(packs) then
if not packs:find("[/\\]dist$") and vim.loop.fs_stat(packs) then
existing = true
vim.health.report_warn("found existing packages at `" .. packs .. "`")
end
Expand Down

0 comments on commit 527f83c

Please sign in to comment.