diff options
author | Adam Harrison <adamdharrison@gmail.com> | 2022-12-30 14:31:33 -0500 |
---|---|---|
committer | Adam Harrison <adamdharrison@gmail.com> | 2022-12-30 14:31:33 -0500 |
commit | 8d198d903cbfb52cffd74331e2c118c389e69757 (patch) | |
tree | 470514727c02a1e753779edde5d10c12ef1111ce | |
parent | 7e78a2ae9e7679b019f4bb590e3594396892cebc (diff) | |
download | lite-xl-plugin-manager-8d198d903cbfb52cffd74331e2c118c389e69757.tar.gz lite-xl-plugin-manager-8d198d903cbfb52cffd74331e2c118c389e69757.zip |
Created user directory if not exists.
-rw-r--r-- | src/lpm.lua | 2 |
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" |