mirror of https://github.com/folke/lazy.nvim.git
fix(fs): dont set cloned=true if symlink already existed
This commit is contained in:
parent
59fb050767
commit
3e143c6017
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue