aboutsummaryrefslogtreecommitdiff
path: root/plugins/plugin_manager/init.lua
diff options
context:
space:
mode:
authorAdam <adamdharrison@gmail.com>2022-09-23 17:32:15 -0400
committerAdam <adamdharrison@gmail.com>2022-09-23 17:32:15 -0400
commita855552028430a601825e69f5477cbcb7c6e7e35 (patch)
tree71fd420640f391f9461d31038d8ad04899d2f6f8 /plugins/plugin_manager/init.lua
parent390895bca4705ecde93efa5d35729484ea47abb3 (diff)
downloadlite-xl-plugin-manager-a855552028430a601825e69f5477cbcb7c6e7e35.tar.gz
lite-xl-plugin-manager-a855552028430a601825e69f5477cbcb7c6e7e35.zip
Updated version 0.1
Diffstat (limited to 'plugins/plugin_manager/init.lua')
-rw-r--r--plugins/plugin_manager/init.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/plugin_manager/init.lua b/plugins/plugin_manager/init.lua
index 566ba8b..c062335 100644
--- a/plugins/plugin_manager/init.lua
+++ b/plugins/plugin_manager/init.lua
@@ -66,14 +66,13 @@ function Promise:forward(promise) self:done(function(data) promise:resolve(data)
local running_processes = {}
local function run(cmd)
- local t = { config.plugins.plugin_manager.lpm, table.unpack(cmd), "--json", "--mod-version", MOD_VERSION }
- if config.plugins.plugin_manager.ssl_certs then table.insert(t, "--ssl_certs") table.insert(t, config.plugins.plugin_manager.ssl_certs) end
table.insert(cmd, 1, config.plugins.plugin_manager.lpm_binary_path)
table.insert(cmd, "--json")
table.insert(cmd, "--mod-version=" .. MOD_VERSION)
table.insert(cmd, "--quiet")
table.insert(cmd, "--userdir=" .. USERDIR)
table.insert(cmd, "--assume-yes")
+ if config.plugins.plugin_manager.ssl_certs then table.insert(cmd, "--ssl_certs") table.insert(cmd, config.plugins.plugin_manager.ssl_certs) end
if config.plugins.plugin_manager.force then table.insert(cmd, "--force") end
local proc = process.start(cmd)
if config.plugins.plugin_manager.debug then for i, v in ipairs(cmd) do io.stdout:write((i > 1 and " " or "") .. v) end io.stdout:write("\n") io.stdout:flush() end