From 1ee64a1d330c3bad21b6bb8a0c7743cba7089472 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Wed, 6 Mar 2024 20:17:05 -0500 Subject: Messed up pathing. --- src/lpm.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lpm.lua b/src/lpm.lua index 7b291cf..884be6d 100644 --- a/src/lpm.lua +++ b/src/lpm.lua @@ -676,7 +676,7 @@ function Addon.new(repository, metadata) if self.remote then local repo = Repository.url(self.remote) local local_path = repo.local_path and (repo.local_path .. (self.path and (PATHSEP .. self.path:gsub("^/", ""):gsub("%.$", "")) or "")) - self.local_path = local_path and system.stat(local_path) or nil + self.local_path = local_path and system.stat(local_path) and local_path or nil else self.local_path = (repository.local_path .. (self.path and (PATHSEP .. self.path:gsub("^/", ""):gsub("%.$", "")) or "")) or nil end -- cgit v1.2.3