mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-12 16:57:32 -04:00
fix ls exit code when piping
This commit is contained in:
parent
0543d0eaf5
commit
1a4e15b0a6
@ -4,7 +4,10 @@ local ok, why = pcall(function(...)
|
||||
return loadfile("/opt/core/full_ls.lua", "bt", _G)(...)
|
||||
end, ...)
|
||||
|
||||
if not ok then
|
||||
if not ok then
|
||||
if type(why) == "table" and why.code == 0 then
|
||||
return
|
||||
end
|
||||
io.stderr:write((why or "") .. "\nFor low memory systems, try using `list` instead\n")
|
||||
return 1
|
||||
end
|
||||
|
@ -2,7 +2,6 @@ local computer = require("computer")
|
||||
local event = require("event")
|
||||
local fs = require("filesystem")
|
||||
local shell = require("shell")
|
||||
local unicode = require("unicode")
|
||||
local process = require("process")
|
||||
|
||||
local function env()
|
||||
|
Loading…
x
Reference in New Issue
Block a user