This commit is contained in:
parent
9c3af74e1b
commit
94f7400169
3 changed files with 26 additions and 0 deletions
|
|
@ -10,4 +10,7 @@ if [ "$1" = add ]; then
|
|||
-H "X-Api-Key: $API_KEY" \
|
||||
"$URL/$2"
|
||||
echo "$URL/$2"
|
||||
|
||||
elif [ "$1" = get ]; then
|
||||
curl -is "$URL/$2" | grep -Po '(?<=location: ).*'
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue