aboutsummaryrefslogtreecommitdiff
path: root/lpm.lua
diff options
context:
space:
mode:
authorAdam <adamdharrison@gmail.com>2022-09-13 18:06:42 -0400
committerAdam <adamdharrison@gmail.com>2022-09-13 18:06:42 -0400
commit5a899a0caed38339134c3f53905c7dafddeb76da (patch)
tree3a2497c4e9be6398cc14b3e5fd158731f830307e /lpm.lua
parent01110499e09043fca918c853d11f266e1984dec4 (diff)
downloadlite-xl-plugin-manager-5a899a0caed38339134c3f53905c7dafddeb76da.tar.gz
lite-xl-plugin-manager-5a899a0caed38339134c3f53905c7dafddeb76da.zip
Fixed typo.
Diffstat (limited to 'lpm.lua')
-rw-r--r--lpm.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/lpm.lua b/lpm.lua
index e054e39..878006b 100644
--- a/lpm.lua
+++ b/lpm.lua
@@ -948,7 +948,7 @@ xpcall(function()
local ARGS = parse_arguments(ARGV, {
json = "flag", userdir = "string", cachedir = "string", version = "flag", verbose = "flag",
quiet = "flag", version = "string", modversion = "string", remotes = "flag", help = "flag",
- remotes = "flag", ssl_cert = "string"
+ remotes = "flag", ssl_certs = "string"
})
if ARGS["version"] then
io.stdout:write(VERSION .. "\n")
@@ -1022,10 +1022,10 @@ Flags have the following effects:
if not system.stat(USERDIR) then error("can't find user directory " .. USERDIR) end
CACHEDIR = ARGS["cachedir"] or os.getenv("LPM_CACHE") or USERDIR .. PATHSEP .. "lpm"
- if ARGS["ssl_cert"] then
- local stat = system.stat(path)
- if not stat then error("can't find " .. path) end
- system.set_certs(stat.type, path)
+ if ARGS["ssl_certs"] then
+ local stat = system.stat(ARGS["ssl_certs"])
+ if not stat then error("can't find " .. ARGS["ssl_certs"]) end
+ system.set_certs(stat.type, ARGS["ssl_certs"])
elseif not os.getenv("SSL_CERT_DIR") and not os.getenv("SSL_CERT_FILE") then
local paths = {
"/etc/ssl/certs/ca-certificates.crt", -- Debian/Ubuntu/Gentoo etc.