Additional shfmt issues

This commit is contained in:
Bob Perper
2025-11-21 16:01:14 -05:00
parent 90d2ff8fad
commit 5e76ea820c

View File

@@ -104,18 +104,18 @@ dns_qc_rm() {
fi
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
_info "Don't need to remove txt records."
else
record_id=$(echo "$response" | grep \"id\"| awk -F ' ' '{print $2}'| sed 's/,$//')
_debug "txt record_id" "$record_id"
if [ -z "$record_id" ]; then
_err "Can not get txt record id to remove."
_info "Can not get txt record id to remove."
return 1
fi
if ! _qc_rest DELETE "zones/$_domain_id/records/$record_id"; then
_err "Delete txt record error."
_info "Delete txt record error."
return 1
fi
_info "TXT Record ID: $record_id successfully deleted"