summaryrefslogtreecommitdiff
path: root/xmake/plugins/lua/main.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-10-10 00:02:03 +0800
committerruki <[email protected]>2021-10-10 00:02:03 +0800
commit37efd34d9f539e1b98404ad1134aa83b9baee0e4 (patch)
tree44b5cb8c045d09e5680e3a0b243b64365188de90 /xmake/plugins/lua/main.lua
parentff96f6c08fcf72b44226626e1d04be60e92ac37c (diff)
fix more unpack
Diffstat (limited to 'xmake/plugins/lua/main.lua')
-rw-r--r--xmake/plugins/lua/main.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/plugins/lua/main.lua b/xmake/plugins/lua/main.lua
index 40b16249e..cf0ed80a1 100644
--- a/xmake/plugins/lua/main.lua
+++ b/xmake/plugins/lua/main.lua
@@ -122,7 +122,7 @@ function _run_script(script, args)
if _is_callable(func) then
local result = table.pack(func(table.unpack(args, 1, args.n)))
if printresult and result and result.n ~= 0 then
- utils.dump(unpack(result, 1, result.n))
+ utils.dump(table.unpack(result, 1, result.n))
end
else
-- dump variables directly