Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tArgs = { ... }
- term.clear()
- term.setCursorPos(1,1)
- print("MineRobberOS Install")
- write("Do you wish to install MineRobberOS?(y/n): ")
- input = read()
- if input == "y" then
- h = http.get("https://raw.githubusercontent.com/MineRobber9000/MineRobberOS/master/startup")
- h2 = fs.open("startup", "w")
- h2.write(h.readAll())
- h2.close()
- h.close()
- print("Done writing startup, installing dependencies!")
- h = http.get("https://raw.githubusercontent.com/MineRobber9000/MineRobberOS/master/apt-get")
- h2 = fs.open("apt-get", "w")
- h2.write(h.readAll())
- h2.close()
- h.close()
- print("Finished!")
- sleep(1)
- os.reboot()
- else
- print("Returning you to your normally scheduled program...")
- shell.run("clear")
- end
Advertisement
Add Comment
Please, Sign In to add comment