From 9afefc5f58f8d00926aa60a56a5672b739fa30b4 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Sat, 3 Dec 2022 14:02:19 -0500 Subject: Fixed multiple installs. --- src/lpm.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lpm.lua') diff --git a/src/lpm.lua b/src/lpm.lua index 9b894c8..ddbb1f5 100644 --- a/src/lpm.lua +++ b/src/lpm.lua @@ -1292,7 +1292,7 @@ local function lpm_install(...) if name == "lite-xl" then lpm_lite_xl_install(version) else - local plugins = { system_bottle:get_plugin(name, version, { mod_version = system_bottle.lite_xl.mod_version }) } + local plugins = common.grep({ system_bottle:get_plugin(name, version, { mod_version = system_bottle.lite_xl.mod_version }) }, function(e) return not e:is_installed(system_bottle) end) if #plugins == 0 then error("can't find plugin " .. name .. " mod-version: " .. (system_bottle.lite_xl.mod_version or 'any')) end for j,v in ipairs(plugins) do v:install(system_bottle) end end -- cgit v1.2.3