feat: use more std::string
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Jef Roosens 2022-11-21 14:19:56 +01:00
parent 26318de22e
commit 494946d24a
Signed by: Jef Roosens
GPG key ID: B75D4F293C7052DB
5 changed files with 38 additions and 24 deletions

View file

@ -11,5 +11,5 @@ if [ "$1" = add ]; then
"$URL/$3"
elif [ "$1" = get ]; then
curl -is "$URL/$2" | grep -Po '(?<=location: ).*'
curl -is "$URL/$2" | sed -En 's/^location: (.*)/\1/p'
fi