feat: pave way for pastebin integration
This commit is contained in:
parent
689a878978
commit
f1ec643f80
5 changed files with 112 additions and 61 deletions
|
|
@ -11,5 +11,5 @@ if [ "$1" = add ]; then
|
|||
"$URL/$3"
|
||||
|
||||
elif [ "$1" = get ]; then
|
||||
curl -is "$URL/$2" | sed -En 's/^location: (.*)/\1/p'
|
||||
curl -is "$URL/$2" | sed -En 's/^[lL]ocation: (.*)/\1/p'
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue