Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local isAdvanced = term.isColor()
- local function printProgress(message, color)
- if isAdvanced then
- term.setTextColor(color)
- end
- print(message)
- if isAdvanced then
- term.setTextColor(colors.white)
- end
- end
- if not fs.exists("/disk") or not fs.isDir("/disk") then
- printProgress("No disk found", colors.red)
- end
- if fs.exists("/disk/cos-cje") then
- fs.delete("/disk/cos-cje")
- end
- if fs.exists("/disk/install") then
- fs.delete("/disk/install")
- end
- printProgress("Creating directories", colors.blue)
- fs.makeDir("/disk/cos-cje/apis/common")
- fs.makeDir("/disk/cos-cje/apis/turtle")
- fs.makeDir("/disk/cos-cje/programs/common")
- fs.makeDir("/disk/cos-cje/programs/turtle")
- fs.makeDir("/disk/cos-cje/data")
- printProgress("Done", colors.lime)
- printProgress("Downloading files", colors.blue)
- shell.run("pastebin", "get", "W9BeB5JG", "/disk/install")
- shell.run("pastebin", "get", "CsZV3h03", "/disk/cos-cje/startup.lua")
- shell.run("pastebin", "get", "4fXUY0Y7", "/disk/cos-cje/apis/common/fsx.lua")
- shell.run("pastebin", "get", "8t7JcfC6", "/disk/cos-cje/apis/common/iox.lua")
- shell.run("pastebin", "get", "d93Nq6Dv", "/disk/cos-cje/apis/common/property.lua")
- shell.run("pastebin", "get", "sViT56pC", "/disk/cos-cje/apis/turtle/navigate.lua")
- shell.run("pastebin", "get", "EbL8uUVa", "/disk/cos-cje/programs/common/cjedisk.lua")
- shell.run("pastebin", "get", "TAXJwTwR", "/disk/cos-cje/programs/turtle/go.lua")
- shell.run("pastebin", "get", "1ZW6HxhJ", "/disk/cos-cje/programs/turtle/turn.lua")
- shell.run("pastebin", "get", "B51AcTke", "/disk/cos-cje/programs/turtle/writepos.lua")
- shell.run("pastebin", "get", "pGHa1LyC", "/disk/cos-cje/data/coscje.properties")
- printProgress("Done", colors.lime)
Advertisement
Add Comment
Please, Sign In to add comment