From 8d198d903cbfb52cffd74331e2c118c389e69757 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Fri, 30 Dec 2022 14:31:33 -0500 Subject: Created user directory if not exists. --- src/lpm.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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" -- cgit v1.2.3