Update dnspod.sh

This commit is contained in:
tianyu 2014-11-19 21:55:33 +08:00
parent 521f7fcfb8
commit 6dd0a050f4
1 changed files with 2 additions and 2 deletions

View File

@ -55,8 +55,8 @@ dnspod_domain_get_id(){
for line in $out;do
if [ $(echo $line|grep '<id>' |wc -l) != 0 ];then
RECORD_ID=${line%<*};
#RECORD_ID=${RECORD_ID#*>};
echo "record id: $RECORD_ID";
RECORD_ID=${RECORD_ID#*>};
#echo "record id: $RECORD_ID";
fi
if [ $(echo $line|grep '<name>' |wc -l) != 0 ];then
RECORD_NAME=${line%<*};