Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local args = {...}
- if args[1] == "update" then
- if args[2] == "run" then
- shell.run("pastebin", "run", "FuQ3WvPs zLrVLa2s update run")
- else
- shell.run("pastebin", "run", "FuQ3WvPs zLrVLa2s update")
- end
- else
- local FileList = fs.list("")
- for _, file in ipairs(FileList) do
- if fs.isDir(file) or file == "update" or file == "updater" or file == "rom" or file == "startup" or file == "startup.lua" then
- -- we ignore those
- print ("Skipping " .. file)
- else
- print ("Updating " .. file .. "...")
- shell.run(file, "update")
- print ("Done")
- end
- end
- end
Add Comment
Please, Sign In to add comment