Skip to content

Commit 527f83c

Browse files
committed
fix(health): existing packages on windows. Fixes #474
1 parent c83563d commit 527f83c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/lazy/health.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function M.check()
2020
local existing = false
2121
for _, site in pairs(sites) do
2222
for _, packs in ipairs(vim.fn.expand(site .. "/pack/*", false, true)) do
23-
if not packs:find("/dist$") and vim.loop.fs_stat(packs) then
23+
if not packs:find("[/\\]dist$") and vim.loop.fs_stat(packs) then
2424
existing = true
2525
vim.health.report_warn("found existing packages at `" .. packs .. "`")
2626
end

0 commit comments

Comments
 (0)