Browse Source

fix: [sh] fixed issues with shellcheck/shfmt

pull/6466/head
Steve Clement 3 months ago
parent
commit
109100b2c2
No known key found for this signature in database GPG Key ID: 69A20F509BE4AEE9
  1. 6
      dnsapi/dns_restena.sh

6
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"

Loading…
Cancel
Save