Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local args = {...}
- local pastebin_url = args[1]
- local output = args[2]
- if pastebin_url == nil or output == nil then
- error("Bad usage : script 'url' 'dest'")
- end
- while true do
- if fs.exists("./" + output) then
- rm ("./" + output);
- end
- print("Fetching " + pastebin_url + "...")
- shell.run("pastebin", "get", pastebin_url, output)
- os.sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement