mirror of
https://github.com/xdtianyu/scripts.git
synced 2025-09-23 04:19:24 +08:00
Update dnspod.sh
This commit is contained in:
@@ -55,8 +55,8 @@ dnspod_domain_get_id(){
|
|||||||
for line in $out;do
|
for line in $out;do
|
||||||
if [ $(echo $line|grep '<id>' |wc -l) != 0 ];then
|
if [ $(echo $line|grep '<id>' |wc -l) != 0 ];then
|
||||||
RECORD_ID=${line%<*};
|
RECORD_ID=${line%<*};
|
||||||
#RECORD_ID=${RECORD_ID#*>};
|
RECORD_ID=${RECORD_ID#*>};
|
||||||
echo "record id: $RECORD_ID";
|
#echo "record id: $RECORD_ID";
|
||||||
fi
|
fi
|
||||||
if [ $(echo $line|grep '<name>' |wc -l) != 0 ];then
|
if [ $(echo $line|grep '<name>' |wc -l) != 0 ];then
|
||||||
RECORD_NAME=${line%<*};
|
RECORD_NAME=${line%<*};
|
||||||
|
Reference in New Issue
Block a user