mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-18 11:48:02 -04:00
safer install on low memory
This commit is contained in:
parent
a4850a5ff1
commit
49666dee0c
@ -4,7 +4,11 @@ local shell = require("shell")
|
|||||||
local options
|
local options
|
||||||
|
|
||||||
do
|
do
|
||||||
local basic = loadfile(package.searchpath("tools/install_basics", package.path), "bt", _G)
|
local basic, reason = loadfile(package.searchpath("tools/install_basics", package.path), "bt", _G)
|
||||||
|
if not basic then
|
||||||
|
io.stderr:write("failed to load install: " .. tostring(reason) .. "\n")
|
||||||
|
return 1
|
||||||
|
end
|
||||||
options = basic(...)
|
options = basic(...)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user