diff options
author | Adam Harrison <adamdharrison@gmail.com> | 2023-07-09 17:41:13 -0400 |
---|---|---|
committer | Adam Harrison <adamdharrison@gmail.com> | 2023-07-09 17:41:13 -0400 |
commit | e6dbda6e8bf33e64d89d784fca4021635e391d81 (patch) | |
tree | 90dede08f252b2d9586ec39444561aef41778f4a | |
parent | 175d9c2ca8a6f82dcde0c0b19cc299525aa727da (diff) | |
download | lite-xl-plugin-manager-e6dbda6e8bf33e64d89d784fca4021635e391d81.tar.gz lite-xl-plugin-manager-e6dbda6e8bf33e64d89d784fca4021635e391d81.zip |
Moved USERDIR creation down a bit.
-rw-r--r-- | src/lpm.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lpm.lua b/src/lpm.lua index db1a953..849a09a 100644 --- a/src/lpm.lua +++ b/src/lpm.lua @@ -2081,7 +2081,6 @@ not commonly used publically. 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 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" if ARGS["trace"] then system.trace(true) end @@ -2227,7 +2226,8 @@ not commonly used publically. end os.exit(0) end - + + if not system.stat(USERDIR) then common.mkdirp(USERDIR) end -- Base setup; initialize default repos if applicable, read them in. Determine Lite XL system binary if not specified, and pull in a list of all local lite-xl's. if engage_locks(function() settings = { lite_xls = {}, repositories = {}, installed = {}, version = VERSION } |