mirror of
https://github.com/IgorTimofeev/MineOS.git
synced 2026-01-06 11:12:40 +01:00
Ebat
This commit is contained in:
parent
a8f2c7d15b
commit
aa01a2a863
@ -1,20 +1,27 @@
|
||||
local handle, data, chunk = component.proxy(component.list("internet")()).request("https://raw.githubusercontent.com/IgorTimofeev/MineOS/master/Installer/Main.lua"), ""
|
||||
|
||||
while true do
|
||||
chunk = handle.read(math.huge)
|
||||
|
||||
if chunk then
|
||||
data = data .. chunk
|
||||
else
|
||||
break
|
||||
|
||||
local result, reason = ""
|
||||
|
||||
do
|
||||
local handle, chunk = component.proxy(component.list("internet")() or error("Required internet component is missing")).request("https://raw.githubusercontent.com/IgorTimofeev/MineOS/master/Installer/Main.lua")
|
||||
|
||||
while true do
|
||||
chunk = handle.read(math.huge)
|
||||
|
||||
if chunk then
|
||||
result = result .. chunk
|
||||
else
|
||||
break
|
||||
end
|
||||
end
|
||||
|
||||
handle.close()
|
||||
end
|
||||
|
||||
handle.close()
|
||||
result, reason = load(result, "=installer")
|
||||
|
||||
local result, reason = load(data, "=installer")
|
||||
if result then
|
||||
result, reason = xpcall(result, debug.traceback)
|
||||
|
||||
if not result then
|
||||
error(reason)
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user