From e0c00c41e7a92c43ab031d306b3653680ff3dd52 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Fri, 30 Dec 2022 13:41:16 -0500 Subject: Small update. --- src/lpm.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/lpm.lua') diff --git a/src/lpm.lua b/src/lpm.lua index f6bf3cf..a064ae5 100644 --- a/src/lpm.lua +++ b/src/lpm.lua @@ -1674,13 +1674,16 @@ in any circumstance unless explicitly supplied. common.mkdirp(TMPDIR) system.certs("system", TMPDIR .. PATHSEP .. "certs.crt") else + local has_certs = false for i, path in ipairs(paths) do local stat = system.stat(path) if stat then + has_certs = true system.certs(stat.type, path) break end end + if not has_certs then error("can't find your system's SSL ceritficates; please specify specify a certificate bundle or certificat directory with --ssl_certs") end end end -- cgit v1.2.3