Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- args = {...}
- term.clear()
- term.setCursorPos(1,1)
- FTPclient = {
- {"FTPclient","3aYPcKBM"},
- {"FTPconfig/fileIcon","4zX25MSQ"},
- {"FTPconfig/folderIcon","3PF9u5G6"},
- {"FTPconfig/folderIcon","3PF9u5G6"},
- {"FTPconfig/folderIcon","3PF9u5G6"},
- {"subPrograms/nPaintPro","MMa4LJ3Z"},
- {"subPrograms/edit","yiTQi6Ei"},
- {"IPclient","xGvfATzP"},
- }
- FTPserver = {
- {"FTPserver","fRgVqkx8"},
- {"IPclient","xGvfATzP"},
- }
- IPnet = {
- {"IPnet","2qwZMpSB"}
- }
- if #args == 0 then
- print("Usage: FTPinstaller <argument>")
- print("Argument can be IPnet, FTPclient or FTPserver.")
- elseif args[1] == "FTPclient" then
- for i,v in pairs(FTPclient) do
- if fs.exists(v[1]) then
- fs.delete(v[1])
- end
- shell.run("pastebin get "..v[2].." "..v[1])
- end
- elseif args[1] == "FTPserver" then
- for i,v in pairs(FTPserver) do
- if fs.exists(v[1]) then
- fs.delete(v[1])
- end
- shell.run("pastebin get "..v[2].." "..v[1])
- end
- elseif args[1] == "IPnet" then
- for i,v in pairs(IPnet) do
- if fs.exists(v[1]) then
- fs.delete(v[1])
- end
- shell.run("pastebin get "..v[2].." "..v[1])
- end
- else
- print("Usage: IPnet <argument>")
- print("Argument can be IPnet, FTPclient or FTPserver.")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement