mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-27 14:12:09 +00:00
use curl -o instead of shell redirection
This commit is contained in:
parent
dad8c4e3e4
commit
2418560975
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue