From 2e10fce294ff84cf0d67867ebc2543763bb2ec51 Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Sat, 25 Nov 2023 12:59:55 -0800 Subject: [PATCH] Fix webmention issues for extended offline periods It was still broken augh. This'll do the trick. --- scripts/get-webmentions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/get-webmentions.sh b/scripts/get-webmentions.sh index a94984a..6deff0f 100644 --- a/scripts/get-webmentions.sh +++ b/scripts/get-webmentions.sh @@ -32,7 +32,7 @@ check_cached_webmentions() { echo 'Using cached webmentions' skip_check=1 exit_status=0 - return 0 + exit 0 fi return 1 fi @@ -71,7 +71,7 @@ verify_webmentions() { # use the token to fetch all webmentions. fetch_webmentions() { echo 'Fetching webmentions' - token_response="$(token)" + token_response="$(token)" || return 1 "$curl_wrapper" --compressed -H "Authorization: Bearer $token_response" "$webmentions_url" -o "$webmentions_file.tmp" || return 1 if verify_webmentions; then mv "$webmentions_file.tmp" "$webmentions_file"