diff options
author | Adam Harrison <adamdharrison@gmail.com> | 2024-03-06 20:17:05 -0500 |
---|---|---|
committer | Adam Harrison <adamdharrison@gmail.com> | 2024-03-06 20:17:05 -0500 |
commit | 1ee64a1d330c3bad21b6bb8a0c7743cba7089472 (patch) | |
tree | 057c771eb49c7f86398d7de9cffd73734e7c3382 /src/lpm.lua | |
parent | d236f64d08d33c77ba317964f86e0547092a8493 (diff) | |
download | lite-xl-plugin-manager-1ee64a1d330c3bad21b6bb8a0c7743cba7089472.tar.gz lite-xl-plugin-manager-1ee64a1d330c3bad21b6bb8a0c7743cba7089472.zip |
Messed up pathing.
Diffstat (limited to 'src/lpm.lua')
-rw-r--r-- | src/lpm.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |