Skip to content
Snippets Groups Projects
Unverified Commit 80b6e7f1 authored by Matthias Schiffer's avatar Matthias Schiffer Committed by GitHub
Browse files

Merge pull request #1742 from bobcanthelpyou/luacheck_gluon-mesh-vpn-core

gluon-mesh-vpn-core: fix luacheck warnings
parents da45bd59 9f4c3932
No related branches found
No related tags found
No related merge requests found
......@@ -21,12 +21,11 @@ if ok ~= 0 then
io.stderr:write(string.format("gluon-wan: unable to change to group: %s\n", err))
os.exit(1)
end
local args = {[0] = arg[1], unpack(arg)}
table.remove(args, 1)
arg[0] = arg[1]
table.remove(arg, 1)
print(arg[0], unpack(arg))
ok, err = unistd.execp(arg[0], arg)
local _
_, err = unistd.execp(args[0], args)
io.stderr:write(string.format("gluon-wan: exec failed: %s\n", err))
os.exit(1)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment