made the shell not return pcall's true if it is true

This commit is contained in:
Izaya 2019-07-28 19:52:32 +10:00
parent 7347c93988
commit be8ba0a40b

View File

@ -35,6 +35,9 @@ setmetatable(shenv,{__index=function(_,k)
tE = {coroutine.yield()} tE = {coroutine.yield()}
if tE[1] == rqid then if tE[1] == rqid then
table.remove(tE,1) table.remove(tE,1)
if tE[1] == true then
table.remove(tE,1)
end
return table.unpack(tE) return table.unpack(tE)
end end
until tTasks[pid] == nil until tTasks[pid] == nil