From 2728170c01510e1c5ca5aaa9f06226f19819d5f3 Mon Sep 17 00:00:00 2001 From: neilpang Date: Wed, 7 Dec 2016 14:30:17 +0800 Subject: [PATCH] add debug info --- dnsapi/dns_dp.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/dnsapi/dns_dp.sh b/dnsapi/dns_dp.sh index 81edc225..e2952d71 100755 --- a/dnsapi/dns_dp.sh +++ b/dnsapi/dns_dp.sh @@ -104,6 +104,7 @@ existing_records() { if _contains "$response" "Action completed successful"; then count=$(printf "%s" "$response" | grep 'TXT' | wc -l | tr -d ' ') record_id=$(printf "%s" "$response" | grep '^' | tail -1 | cut -d '>' -f 2 | cut -d '<' -f 1) + _debug record_id "$record_id" return 0 else _err "get existing records error."