Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1,1)
- print("> EasyDownloader loaded and shortcutted..")
- print("> You are about to download: Installer for OSROS-r")
- print("")
- print("> Do you wish to download the installer for OSROS-r? (y/n)")
- write("> ")
- local ui = read()
- if ui == "y" then
- local get = http.get("https://raw.github.com/optimussnorr/osros/master/installer")
- local data = get.readAll()
- get.close()
- local file = fs.open("installer","w")
- file.write(data)
- file.close()
- print("> downloaded. running now...")
- print("> (can be run later with 'installer'")
- sleep(2)
- shell.run("installer")
- elseif ui == "n" then
- print("> download aborted.")
- sleep(1)
- print("> closing easyDloader...")
- sleep(2)
- term.clear()
- term.setCursorPos(1,1)
- else
- print("> use 'y' or 'n'! case sensitive!")
- sleep(1)
- print("> operation closed")
- end
Add Comment
Please, Sign In to add comment