Browse Source

shfmt updates

pull/6631/head
Bob Perper 3 days ago
parent
commit
6b6d22c5ba
  1. 4
      dnsapi/dns_qc.sh

4
dnsapi/dns_qc.sh

@ -103,12 +103,12 @@ dns_qc_rm() {
return 1 return 1
fi fi
response=$(echo "$response"|jq ".result[] | select(.id) | select(.content == \"$txtvalue\") | select(.type == \"TXT\")")
response=$(echo "$response" | jq ".result[] | select(.id) | select(.content == \"$txtvalue\") | select(.type == \"TXT\")")
_debug "get txt response" "$response" _debug "get txt response" "$response"
if [ "${response}" = "" ]; then if [ "${response}" = "" ]; then
_info "Don't need to remove txt records." _info "Don't need to remove txt records."
else else
record_id=$(echo "$response" | grep \"id\"| awk -F ' ' '{print $2}'| sed 's/,$//')
record_id=$(echo "$response" | grep \"id\" | awk -F ' ' '{print $2}' | sed 's/,$//')
_debug "txt record_id" "$record_id" _debug "txt record_id" "$record_id"
if [ -z "$record_id" ]; then if [ -z "$record_id" ]; then
_err "Can not get txt record id to remove. Run in debug mode." _err "Can not get txt record id to remove. Run in debug mode."

Loading…
Cancel
Save