Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
neilpang committed Jan 28, 2019
1 parent 43877d2 commit a964646
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dnsapi/dns_dp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ dns_dp_rm() {
return 0
fi

record_id=$(echo "$response" | _egrep_o '{[^{]*"value":"'"$txtvalue"'"' | cut -d , -f 1 | cut -d : -f 2 | tr -d \")
record_id=$(echo "$response" | tr "{" "\n" | grep "$txtvalue" | grep '^"id"' | cut -d : -f 2 | cut -d '"' -f 2)
_debug record_id "$record_id"
if [ -z "$record_id" ]; then
_err "Can not get record id."
Expand Down

0 comments on commit a964646

Please sign in to comment.