Browse Source

fix format

neilpang 8 years ago
parent
commit
f1f3074306
1 changed files with 1 additions and 1 deletions
  1. 1 1
      dnsapi/dns_dp.sh

+ 1 - 1
dnsapi/dns_dp.sh

@@ -67,7 +67,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" | _egrep_o '{[^{]*"value":"'"$txtvalue"'"' | cut -d , -f 1 | cut -d : -f 2 | tr -d \")
   _debug record_id "$record_id"
   if [ -z "$record_id" ]; then
     _err "Can not get record id."