mirror of
				https://github.com/folke/lazy.nvim.git
				synced 2025-10-31 06:21:14 +00:00 
			
		
		
		
	fix(fs): dont set cloned=true if symlink already existed
This commit is contained in:
		
					parent
					
						
							
								59fb050767
							
						
					
				
			
			
				commit
				
					
						3e143c6017
					
				
			
		
					 1 changed files with 0 additions and 2 deletions
				
			
		|  | @ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue