mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-17 19:25:20 -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
|
||||
|
||||
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(...)
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user