Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function updateScript(hash, path)
- if fs.exists(path) then
- fs.delete(path)
- end
- shell.run("pastebin get " .. hash .. " " .. path)
- end
- local scripts = dofile("/disk/scripts")
- for _,v in pairs(scripts) do
- updateScript(v.hash, v.directory .. "/" .. v.name)
- end
- if fs.exists(".env") then
- fs.delete("/disk/.env")
- fs.copy(".env", "/disk/.env")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement