feat: pave way for pastebin integration

This commit is contained in:
Jef Roosens 2022-11-21 15:28:02 +01:00
parent 689a878978
commit f1ec643f80
Signed by: Jef Roosens
GPG key ID: B75D4F293C7052DB
5 changed files with 112 additions and 61 deletions

View file

@ -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