1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-09-19 20:02:10 +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
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.
@ -40,5 +40,5 @@ if [ -f "$webmentions_file" ] \
echo 'Using cached webmentions'
else
echo 'Fetching webmentions'
fetch_webmentions >"$webmentions_file"
fetch_webmentions
fi