Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- paste.lua
- local shell=require("shell")
- local os=require("os")
- local args, ops = shell.parse(...)
- if #args==0 then
- io.write("paste [link-code] [filename]")
- elseif args[2]==nil then
- io.write("link-code: "..args[1].." | filename: "..args[1].."\n")
- print("########")
- local str="wget -f https://pastebin.com/raw/"..args[1].." "..args[1]
- os.execute(str)
- elseif args[2]~=nil then
- io.write("link-code: "..args[1].." | filename: "..args[2].."\n")
- print("########")
- local str="wget -f https://pastebin.com/raw/"..args[1].." "..args[2]
- os.execute(str)
- end
Add Comment
Please, Sign In to add comment