From 72289f0f9df0221200e7b9a83485d129d6c03276 Mon Sep 17 00:00:00 2001 From: Tim Kimber Date: Sun, 31 Dec 2023 17:39:27 +0000 Subject: [PATCH] Fix shellcheck issues --- getssl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/getssl b/getssl index 4220a54..b6a6e92 100755 --- a/getssl +++ b/getssl @@ -598,7 +598,7 @@ check_challenge_completion_dns() { # perform validation via DNS challenge rr_cname=$(grep -i "^${rr}"<<<"${check_output}"|grep 'IN\WCNAME'|awk '{ print $5}') debug "cname check=\"$rr_cname\"" if [[ -n "$rr_cname" ]]; then - check_output=$($DNS_CHECK_FUNC $DNS_CHECK_OPTIONS TXT "${rr_cname}" "@${ns}") + check_output=$($DNS_CHECK_FUNC "${DNS_CHECK_OPTIONS}" TXT "${rr_cname}" "@${ns}") check_result=$(grep -i "^${rr_cname}"<<<"${check_output}"|grep 'IN\WTXT'|awk -F'"' '{ print $2}' | uniq) fi fi @@ -1217,7 +1217,7 @@ create_order() { dn=0 for d in "${alldomains[@]}"; do # get authorizations link - AuthLink[$dn]=$(json_get "$response" "identifiers" "value" "${d##\*.}" "authorizations" "x") + AuthLink[dn]=$(json_get "$response" "identifiers" "value" "${d##\*.}" "authorizations" "x") debug "authorizations link for $d - ${AuthLink[$dn]}" ((dn++)) done @@ -1241,8 +1241,8 @@ create_order() { if [[ ( "$lower_d" == "$authdomain" && -z "$wildcard" ) || ( "$lower_d" == "*.${authdomain}" && -n "$wildcard" ) ]]; then debug "Saving authorization response for $authdomain for domain alldomains[$dn]" debug "Response = ${response//[$'\t\r\n']}" - AuthLinkResponse[$dn]=$response - AuthLinkResponseHeader[$dn]=$responseHeaders + AuthLinkResponse[dn]=$response + AuthLinkResponseHeader[dn]=$responseHeaders fi ((dn++)) done