Advertisement
Ewgeniy

bios

Sep 4th, 2021
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.58 KB | None | 0 0
  1.  
  2. local result, reason = ""
  3.  
  4. do
  5.     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")
  6.  
  7.     while true do
  8.         chunk = handle.read(math.huge)
  9.        
  10.         if chunk then
  11.             result = result .. chunk
  12.         else
  13.             break
  14.         end
  15.     end
  16.  
  17.     handle.close()
  18. end
  19.  
  20. result, reason = load(result, "=installer")
  21.  
  22. if result then
  23.     result, reason = xpcall(result, debug.traceback)
  24.  
  25.     if not result then
  26.         error(reason)
  27.     end
  28. else
  29.     error(reason)  
  30. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement