Fix indentation and added some debug messages
parent
81c496d96c
commit
4284777556
|
@ -61,7 +61,7 @@ dns_simply_rm() {
|
||||||
_debug _domain "$_domain"
|
_debug _domain "$_domain"
|
||||||
_debug txtvalue "$txtvalue"
|
_debug txtvalue "$txtvalue"
|
||||||
|
|
||||||
_debug "Getting existing records"
|
_info "Getting all existing records"
|
||||||
|
|
||||||
if ! _simply_get_all_records "$_domain"; then
|
if ! _simply_get_all_records "$_domain"; then
|
||||||
_err "invalid domain"
|
_err "invalid domain"
|
||||||
|
@ -72,9 +72,12 @@ dns_simply_rm() {
|
||||||
record_array=(`echo $records |tr -d ' ' | tr ';' ' '`)
|
record_array=(`echo $records |tr -d ' ' | tr ';' ' '`)
|
||||||
nr_of_deleted_records=0
|
nr_of_deleted_records=0
|
||||||
|
|
||||||
|
_info "Fetching txt record.."
|
||||||
|
|
||||||
for (( i=0; i<=${#record_array[@]}; i++ )); do
|
for (( i=0; i<=${#record_array[@]}; i++ )); do
|
||||||
|
|
||||||
record="${record_array[$i]}"
|
record="${record_array[$i]}"
|
||||||
|
_debug record "$record"
|
||||||
|
|
||||||
if [[ "$record" == *"$txtvalue"* && "$record" == *"TXT"* ]]; then
|
if [[ "$record" == *"$txtvalue"* && "$record" == *"TXT"* ]]; then
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue