From 124de18ed275fe16bca09ee1620591462c002265 Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Tue, 26 Sep 2017 13:57:00 +1000 Subject: [PATCH] made luash set the session ID correctly --- exec/luash.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/exec/luash.lua b/exec/luash.lua index dea87da..d804704 100644 --- a/exec/luash.lua +++ b/exec/luash.lua @@ -1,6 +1,7 @@ local tA = {...} local si = tA[1] spawn("lua shell",function() + os.setenv("sI",si) _ENV = shutil.genenv() coroutine.yield() log(pcall(login)) @@ -45,4 +46,4 @@ spawn("lua shell",function() print(table.unpack(r)) end end -end,{sI=si}) +end)