From aaa14466f2e1265e87b81c81c1509ded70495500 Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Fri, 5 Apr 2024 16:59:06 -0400 Subject: [PATCH] Fix unbound var --- scripts/get-webmentions.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/get-webmentions.sh b/scripts/get-webmentions.sh index 9105f2d..061e5d1 100644 --- a/scripts/get-webmentions.sh +++ b/scripts/get-webmentions.sh @@ -5,7 +5,7 @@ # The response is cached for 90 minutes. If fetching fresh webmentions fails, fall back to the cached version for up to one day (1440 minutes). If cached webmentions are older than a day, error out. # no pipefail here since there are no pipes. -set -e -u +set -e exit_on_connectivity_failure() { echo "You are offline" @@ -16,6 +16,8 @@ if [ -z "$JOB_URL" ]; then sh scripts/connectivity-check.sh || exit_on_connectivity_failure fi +set -u + dirname="$(dirname "$0")" curl_wrapper="$dirname/curl-wrapper.sh" auth_url='https://collector.seirdy.one/webmentions/authenticate/access-key'