Skip to content

Commit 2cad636

Browse files
committed
Fix some shellcheck warnings, ignore incorrect warnings
1 parent 59ed755 commit 2cad636

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

getssl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -598,6 +598,7 @@ check_challenge_completion_dns() { # perform validation via DNS challenge
598598
rr_cname=$(grep -i "^${rr}"<<<"${check_output}"|grep 'IN\WCNAME'|awk '{ print $5}')
599599
debug "cname check=\"$rr_cname\""
600600
if [[ -n "$rr_cname" ]]; then
601+
# shellcheck disable=SC2086
601602
check_output=$($DNS_CHECK_FUNC $DNS_CHECK_OPTIONS TXT "${rr_cname}" "@${ns}")
602603
check_result=$(grep -i "^${rr_cname}"<<<"${check_output}"|grep 'IN\WTXT'|awk -F'"' '{ print $2}' | uniq)
603604
fi
@@ -1217,7 +1218,7 @@ create_order() {
12171218
dn=0
12181219
for d in "${alldomains[@]}"; do
12191220
# get authorizations link
1220-
AuthLink[$dn]=$(json_get "$response" "identifiers" "value" "${d##\*.}" "authorizations" "x")
1221+
AuthLink[dn]=$(json_get "$response" "identifiers" "value" "${d##\*.}" "authorizations" "x")
12211222
debug "authorizations link for $d - ${AuthLink[$dn]}"
12221223
((dn++))
12231224
done
@@ -1241,8 +1242,8 @@ create_order() {
12411242
if [[ ( "$lower_d" == "$authdomain" && -z "$wildcard" ) || ( "$lower_d" == "*.${authdomain}" && -n "$wildcard" ) ]]; then
12421243
debug "Saving authorization response for $authdomain for domain alldomains[$dn]"
12431244
debug "Response = ${response//[$'\t\r\n']}"
1244-
AuthLinkResponse[$dn]=$response
1245-
AuthLinkResponseHeader[$dn]=$responseHeaders
1245+
AuthLinkResponse[dn]=$response
1246+
AuthLinkResponseHeader[dn]=$responseHeaders
12461247
fi
12471248
((dn++))
12481249
done

0 commit comments

Comments
 (0)