aboutsummaryrefslogtreecommitdiff
path: root/src/lpm.lua
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2023-07-09 17:12:23 -0400
committerAdam Harrison <adamdharrison@gmail.com>2023-07-09 17:12:23 -0400
commit175d9c2ca8a6f82dcde0c0b19cc299525aa727da (patch)
treeb22a9e0314c191f9ecc9daff77ba8d2ce68cbfc5 /src/lpm.lua
parentc8390569f6eceedd71b7090ef52a4f88886bc475 (diff)
downloadlite-xl-plugin-manager-175d9c2ca8a6f82dcde0c0b19cc299525aa727da.tar.gz
lite-xl-plugin-manager-175d9c2ca8a6f82dcde0c0b19cc299525aa727da.zip
Added in executable path to test command.
Diffstat (limited to 'src/lpm.lua')
-rw-r--r--src/lpm.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lpm.lua b/src/lpm.lua
index 2c66de1..db1a953 100644
--- a/src/lpm.lua
+++ b/src/lpm.lua
@@ -2174,7 +2174,9 @@ not commonly used publically.
-- Small utility functions that don't play into the larger app; are used for testing
-- or for handy scripts.
if ARGS[2] == "test" then
- rawset(_G, "arg", common.slice(ARGS, 4))
+ local arg = common.slice(ARGS, 4)
+ arg[0] = ARGS[1]
+ rawset(_G, "arg", arg)
dofile(ARGS[3])
os.exit(0)
end