feat: use more std::string
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
26318de22e
commit
494946d24a
5 changed files with 38 additions and 24 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue