From b408cfe27b2ac3c1ee9a95b05d7d2371e40627c2 Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Mon, 16 Dec 2019 16:43:32 +1100 Subject: [PATCH] made the shell return sane values --- exec/shell.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exec/shell.lua b/exec/shell.lua index 802455e..9334f22 100644 --- a/exec/shell.lua +++ b/exec/shell.lua @@ -25,7 +25,7 @@ setmetatable(shenv,{__index=function(_,k) return function(...) local tA = {...} local pid = os.spawnfile(fp,fp,table.unpack(tA)) - local tE = event.pull("process_finished",pid) + local tE = {event.pull("process_finished",pid)} if tE[1] == true then table.remove(tE,1) end