mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-13 09:18:05 -04:00
fix ls exit code when piping
This commit is contained in:
parent
0543d0eaf5
commit
1a4e15b0a6
@ -5,6 +5,9 @@ local ok, why = pcall(function(...)
|
|||||||
end, ...)
|
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")
|
io.stderr:write((why or "") .. "\nFor low memory systems, try using `list` instead\n")
|
||||||
return 1
|
return 1
|
||||||
end
|
end
|
||||||
|
@ -2,7 +2,6 @@ local computer = require("computer")
|
|||||||
local event = require("event")
|
local event = require("event")
|
||||||
local fs = require("filesystem")
|
local fs = require("filesystem")
|
||||||
local shell = require("shell")
|
local shell = require("shell")
|
||||||
local unicode = require("unicode")
|
|
||||||
local process = require("process")
|
local process = require("process")
|
||||||
|
|
||||||
local function env()
|
local function env()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user