From 109100b2c2cedc858bfca2f1610704f3f72fbeed Mon Sep 17 00:00:00 2001 From: Steve Clement Date: Thu, 7 Aug 2025 12:06:05 +0200 Subject: [PATCH] fix: [sh] fixed issues with shellcheck/shfmt --- dnsapi/dns_restena.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dnsapi/dns_restena.sh b/dnsapi/dns_restena.sh index 831a8c02..35c45f13 100644 --- a/dnsapi/dns_restena.sh +++ b/dnsapi/dns_restena.sh @@ -49,7 +49,7 @@ dns_restena_add() { _saveaccountconf_mutable RESTENA_ZONE "$RESTENA_ZONE" # Extract the label part by removing the zone suffix - label="${fulldomain%.$RESTENA_ZONE}" + label="${fulldomain%."$RESTENA_ZONE"}" # This is needed to wrap the request in double quotes data="\\\"$txtvalue\\\"" @@ -65,7 +65,7 @@ dns_restena_add() { # Set Content-Type header export _H1="Content-Type: application/json" - + # Make the API call to add the TXT record response="$(_post "$body" "$_restena_api" "" "PUT")" _debug "API response: $response" @@ -107,7 +107,7 @@ dns_restena_rm() { fi # Extract the label part by removing the zone suffix - label="${fulldomain%.$RESTENA_ZONE}" + label="${fulldomain%."$RESTENA_ZONE"}" _info "Removing TXT record via Restena API..." _debug "Zone: $RESTENA_ZONE"