aboutsummaryrefslogtreecommitdiff
path: root/src/lpm.lua
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2023-07-01 15:21:20 -0400
committerAdam Harrison <adamdharrison@gmail.com>2023-07-01 15:21:20 -0400
commit0f2a390d03030ddcc3755c6d955f92e567fb0ae6 (patch)
tree3074340bf858e936e3fac0664bdf3860ee05dad3 /src/lpm.lua
parent42a9b8061c887e61f17cd7b24aabc5d3efc3097d (diff)
downloadlite-xl-plugin-manager-0f2a390d03030ddcc3755c6d955f92e567fb0ae6.tar.gz
lite-xl-plugin-manager-0f2a390d03030ddcc3755c6d955f92e567fb0ae6.zip
Added appropriate mkdirp to fix an issue with custom inits.
Diffstat (limited to 'src/lpm.lua')
-rw-r--r--src/lpm.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lpm.lua b/src/lpm.lua
index 4d92faf..5a4acb7 100644
--- a/src/lpm.lua
+++ b/src/lpm.lua
@@ -1467,6 +1467,7 @@ end
local DEFAULT_REPOS
local function lpm_repo_init(repos)
DEFAULT_REPOS = { Repository.url("https://github.com/adamharrison/lite-xl-plugin-manager.git:latest") }
+ common.mkdirp(CACHEDIR)
if not system.stat(CACHEDIR .. PATHSEP .. "settings.json") then
for i, repository in ipairs(repos or DEFAULT_REPOS) do
table.insert(repositories, repository:add(true))