Follow redirect

This commit is contained in:
Mylloon 2024-10-01 22:21:07 +02:00
parent c62df5324a
commit ddf452bd52
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 2 additions and 2 deletions

View file

@ -122,7 +122,7 @@ function main {
fish -c "tldr --update" fish -c "tldr --update"
# Fish completion # Fish completion
local url_tldr local url_tldr
url_tldr=$(curl -s https://api.github.com/repos/dbrgn/tealdeer/releases/latest \ url_tldr=$(curl -sL https://api.github.com/repos/dbrgn/tealdeer/releases/latest \
| grep 'browser_download_url": ".*/completions_fish"' \ | grep 'browser_download_url": ".*/completions_fish"' \
| cut --delimiter=":" --field=2,3 \ | cut --delimiter=":" --field=2,3 \
| tr -d \" ) | tr -d \" )

View file

@ -59,7 +59,7 @@ function main {
fish -c "tldr --update" fish -c "tldr --update"
# Fish completion # Fish completion
local url_tldr local url_tldr
url_tldr=$(curl -s https://api.github.com/repos/dbrgn/tealdeer/releases/latest \ url_tldr=$(curl -sL https://api.github.com/repos/dbrgn/tealdeer/releases/latest \
| grep 'browser_download_url": ".*/completions_fish"' \ | grep 'browser_download_url": ".*/completions_fish"' \
| cut --delimiter=":" --field=2,3 \ | cut --delimiter=":" --field=2,3 \
| tr -d \" ) | tr -d \" )