Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1, 1)
- print("Circles Demo Installer")
- print()
- write("This installer will make a new directory named 'circles-demo'. This will overwrite existing data!")
- print()
- print()
- print("Any Other Key = Yes / Continue")
- print("N = No / Exit")
- print()
- local userInput = read()
- if (userInput.lower == "n") then
- print("Rebooting.")
- os.reboot()
- end
- --[[term.clear()
- term.setCursorPos(1, 1)
- print("Circles Demo Installer")
- print()
- write("Which build of the API do you want to install?")
- print()
- print()
- print("1 = Default")
- print("2 = Bleeding Edge")
- print()
- local userInput = read()--]]
- --[[if (userInput.lower == "1") or (userInput.lower == "2") then
- else
- error("Invalid user input.")
- end]]--
- print()
- print("Checking for any existing files.")
- if (fs.exists("circles-demo")) then
- print("'circles-demo' was found! Removing...")
- fs.delete("circles-demo")
- print("Removed!")
- else
- print("'circles-demo' was not found. Continuing.")
- end
- print("Creating 'circles-demo' directory...")
- fs.makeDir("circles-demo")
- print("Created!")
- print("Downloading files into 'circles-demo'...")
- shell.run("pastebin get RZsm70tu circles-demo/demo")
- shell.run("pastebin get dnegTmJY circles-demo/circles")
- print("Done!")
- print("Now exiting installer.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement