aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2022-12-30 14:31:33 -0500
committerAdam Harrison <adamdharrison@gmail.com>2022-12-30 14:31:33 -0500
commit8d198d903cbfb52cffd74331e2c118c389e69757 (patch)
tree470514727c02a1e753779edde5d10c12ef1111ce
parent7e78a2ae9e7679b019f4bb590e3594396892cebc (diff)
downloadlite-xl-plugin-manager-8d198d903cbfb52cffd74331e2c118c389e69757.tar.gz
lite-xl-plugin-manager-8d198d903cbfb52cffd74331e2c118c389e69757.zip
Created user directory if not exists.
-rw-r--r--src/lpm.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lpm.lua b/src/lpm.lua
index a064ae5..d882613 100644
--- a/src/lpm.lua
+++ b/src/lpm.lua
@@ -1645,7 +1645,7 @@ in any circumstance unless explicitly supplied.
USERDIR = common.normalize_path(ARGS["userdir"]) or os.getenv("LITE_USERDIR") or (os.getenv("XDG_CONFIG_HOME") and os.getenv("XDG_CONFIG_HOME") .. PATHSEP .. "lite-xl")
or (HOME and (HOME .. PATHSEP .. '.config' .. PATHSEP .. 'lite-xl'))
AUTO_PULL_REMOTES = ARGS["remotes"]
- if not system.stat(USERDIR) then error("can't find user directory " .. USERDIR) end
+ if not system.stat(USERDIR) then common.mkdirp(USERDIR) end
CACHEDIR = common.normalize_path(ARGS["cachedir"]) or os.getenv("LPM_CACHE") or USERDIR .. PATHSEP .. "lpm"
TMPDIR = common.normalize_path(ARGS["tmpdir"]) or CACHEDIR .. PATHSEP .. "tmp"