Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.setTextColor(colors.red)
- while not fs.isDir("/disk") and fs.list("/disk") ~= {} do
- term.clear()
- term.setCursorPos(1, 1)
- print("Please insert an empty disk into /disk (or be cheaty & create /disk)")
- sleep(.1)
- os.queueEvent("setup")
- os.pullEvent("setup")
- end
- print("Downloading data...")
- local files = {"setup", "startup", "data/ccp", "data/archive.ccp"}
- fs.makeDir("/disk/data")
- for k,v in ipairs(files) do
- print("Downloading " .. v)
- local file = fs.open("/disk/" .. v, "w")
- file.write(http.get("http://cppconsole.bruienne.com/repos/compcraft/ccv/raw/" .. v).readAll())
- file.close()
- end
- print("Setup downloaded to /disk/setup")
Add Comment
Please, Sign In to add comment