1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-10 00:12:09 +00:00

use curl -o instead of shell redirection

This commit is contained in:
Rohan Kumar 2023-11-14 23:01:46 -08:00
parent dad8c4e3e4
commit 2418560975
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479

View file

@ -30,7 +30,7 @@ token() {
# use that token to fetch all webmentions # use that token to fetch all webmentions
fetch_webmentions() { fetch_webmentions() {
ccurl --compressed -H "Authorization: Bearer $(token)" "$webmentions_url" ccurl --compressed -H "Authorization: Bearer $(token)" "$webmentions_url" -o "$webmentions_file"
} }
# fetch webmentions if we don't have a fresh copy already. # fetch webmentions if we don't have a fresh copy already.
@ -40,5 +40,5 @@ if [ -f "$webmentions_file" ] \
echo 'Using cached webmentions' echo 'Using cached webmentions'
else else
echo 'Fetching webmentions' echo 'Fetching webmentions'
fetch_webmentions >"$webmentions_file" fetch_webmentions
fi fi