From 82a5c84394ef0aab6b5bf9bf218e95bc1473b16a Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Wed, 3 Apr 2024 22:36:00 -0400 Subject: [PATCH] Don't fetch webmentions offline --- scripts/get-webmentions.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/get-webmentions.sh b/scripts/get-webmentions.sh index 84524dd..a90b773 100644 --- a/scripts/get-webmentions.sh +++ b/scripts/get-webmentions.sh @@ -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'