Commit 2728170c authored by neilpang's avatar neilpang
Browse files

add debug info

parent 7d1c5fca
...@@ -104,6 +104,7 @@ existing_records() { ...@@ -104,6 +104,7 @@ existing_records() {
if _contains "$response" "Action completed successful"; then if _contains "$response" "Action completed successful"; then
count=$(printf "%s" "$response" | grep '<type>TXT</type>' | wc -l | tr -d ' ') count=$(printf "%s" "$response" | grep '<type>TXT</type>' | wc -l | tr -d ' ')
record_id=$(printf "%s" "$response" | grep '^<id>' | tail -1 | cut -d '>' -f 2 | cut -d '<' -f 1) record_id=$(printf "%s" "$response" | grep '^<id>' | tail -1 | cut -d '>' -f 2 | cut -d '<' -f 1)
_debug record_id "$record_id"
return 0 return 0
else else
_err "get existing records error." _err "get existing records error."
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment