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

Don't fetch webmentions offline

This commit is contained in:
Rohan Kumar 2024-04-03 22:36:00 -04:00
parent 2c2cf0eada
commit 82a5c84394
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479

View file

@ -7,6 +7,13 @@
# no pipefail here since there are no pipes. # no pipefail here since there are no pipes.
set -e -u set -e -u
exit_on_connectivity_failure() {
echo "You are offline"
exit 0
}
sh scripts/connectivity-check.sh || exit_on_connectivity_failure
dirname="$(dirname "$0")" dirname="$(dirname "$0")"
curl_wrapper="$dirname/curl-wrapper.sh" curl_wrapper="$dirname/curl-wrapper.sh"
auth_url='https://collector.seirdy.one/webmentions/authenticate/access-key' auth_url='https://collector.seirdy.one/webmentions/authenticate/access-key'