diff options
author | Adam Harrison <adamdharrison@gmail.com> | 2024-05-13 17:40:43 -0400 |
---|---|---|
committer | Adam Harrison <adamdharrison@gmail.com> | 2024-05-13 17:40:43 -0400 |
commit | 22152f16b4d4da511dfc25a6dacc194419cacce6 (patch) | |
tree | 1ffa3057d2a36196e167d5e49b8edde6a1a9e044 /src | |
parent | 1a8998604561cd4308be8b76cdc12d6d1b0168f2 (diff) | |
download | lite-xl-plugin-manager-22152f16b4d4da511dfc25a6dacc194419cacce6.tar.gz lite-xl-plugin-manager-22152f16b4d4da511dfc25a6dacc194419cacce6.zip |
Ugh.
Diffstat (limited to 'src')
-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 c8f1986..f17fcb8 100644 --- a/src/lpm.lua +++ b/src/lpm.lua @@ -735,7 +735,7 @@ function Addon.new(repository, metadata) self.local_path = (repository.local_path .. (self.path and (PATHSEP .. self.path:gsub("^/", ""):gsub("%.$", "")) or "")) or nil end end - self.organization = metadata.organization or (((self.files and #self.files > 0) or (not self.path and not self.url) or not (self.local_path and (system.stat(self.local_path) or {}).type == "file")) and "complex" or "singleton") + self.organization = metadata.organization or (((self.files and #self.files > 0) or (not self.url and (not self.path or not (self.local_path and (system.stat(self.local_path) or {}).type == "file")))) and "complex" or "singleton") return self end |