This commit is contained in:
neil 2016-05-23 13:32:50 +08:00
parent 8d5618c44a
commit bb276fc985
2 changed files with 3 additions and 3 deletions

View File

@ -44,13 +44,13 @@ dns_cx_add() {
return 1
fi
if [ "$count" == "0" ] ; then
if [ "$count" = "0" ] ; then
add_record $_domain $_sub_domain $txtvalue
else
update_record $_domain $_sub_domain $txtvalue
fi
if [ "$?" == "0" ] ; then
if [ "$?" = "0" ] ; then
return 0
fi
return 1

View File

@ -44,7 +44,7 @@ dns_dp_add() {
return 1
fi
if [ "$count" == "0" ] ; then
if [ "$count" = "0" ] ; then
add_record $_domain $_sub_domain $txtvalue
else
update_record $_domain $_sub_domain $txtvalue