Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Program folder location:")
- path = read()
- if fs.exists(path) then
- print("Existing files will be deleted.\nPress y to continue.")
- evt,key = os.pullEvent("key")
- if key == keys.y then
- write("Deleting existing files... ")
- fs.delete(path)
- print("Success.")
- else cancel = true
- print("Process terminated.")
- sleep(0.1)end
- end
- if not cancel then
- if path ~= "" then
- write("Creating new folder "..path.."/... ")
- fs.makeDir(path)
- print("Success")
- end
- shell.run("pastebin get 7wDQAN40 "..path.."/entity")
- shell.run("pastebin get kPGiiRu4 "..path.."/block")
- shell.run("pastebin get 15LtKbKy "..path.."/query")
- shell.run("pastebin get DkRynQVx "..path.."/update")
- shell.run("reboot")
- end
Advertisement
Add Comment
Please, Sign In to add comment