Skip to content

Commit

Permalink
fix(fs): dont set cloned=true if symlink already existed
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Dec 2, 2022
1 parent 59fb050 commit 3e143c6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lua/lazy/manage/task/fs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,8 @@ M.symlink = {
run = function(self)
local stat = vim.loop.fs_lstat(self.plugin.dir)
if stat then
assert(stat.type == "link")
if vim.loop.fs_realpath(self.plugin.uri) == vim.loop.fs_realpath(self.plugin.dir) then
self.plugin._.installed = true
self.plugin._.cloned = true
return
else
vim.loop.fs_unlink(self.plugin.dir)
Expand Down

0 comments on commit 3e143c6

Please sign in to comment.