From be8ba0a40bc7dcee7c2d5c028669e2594dc0b57a Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Sun, 28 Jul 2019 19:52:32 +1000 Subject: [PATCH] made the shell not return pcall's true if it is true --- exec/shell.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/exec/shell.lua b/exec/shell.lua index 09ed6bc..a605189 100644 --- a/exec/shell.lua +++ b/exec/shell.lua @@ -35,6 +35,9 @@ setmetatable(shenv,{__index=function(_,k) tE = {coroutine.yield()} if tE[1] == rqid then table.remove(tE,1) + if tE[1] == true then + table.remove(tE,1) + end return table.unpack(tE) end until tTasks[pid] == nil