mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-23 12:52:10 +00:00
Don't fetch webmentions offline
This commit is contained in:
parent
2c2cf0eada
commit
82a5c84394
1 changed files with 7 additions and 0 deletions
|
@ -7,6 +7,13 @@
|
|||
# no pipefail here since there are no pipes.
|
||||
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")"
|
||||
curl_wrapper="$dirname/curl-wrapper.sh"
|
||||
auth_url='https://collector.seirdy.one/webmentions/authenticate/access-key'
|
||||
|
|
Loading…
Reference in a new issue