Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- All the hipsters have multiple files 'n downloaders 'n shit.
- So now I have one too :3
- ]]--
- local files = {
- [1] = {link="http://ccpost.esy.es/omnimover/setup.lua",fileloc="setup"},
- [2] = {link="http://ccpost.esy.es/omnimover/startup.lua",fileloc="startup"},
- [3] = {link="http://ccpost.esy.es/omnimover/zeppelinapi.lua",fileloc="zeppelinapi"}
- }
- existing = {}
- for k,v in pairs(files) do
- if fs.exists(v.fileloc) then
- table.insert(existing, v.fileloc)
- end
- end
- for k,v in pairs(existing) do
- fs.delete(v)
- end
- for k,v in pairs(files) do
- response = http.get(v.link)
- file = response.readAll()
- handle = fs.open(v.fileloc, "w")
- handle.write(file)
- handle.close()
- end
- shell.run("setup")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement