From bb276fc985ea4b6585ac9530efc03e20215d9ad8 Mon Sep 17 00:00:00 2001 From: neil Date: Mon, 23 May 2016 13:32:50 +0800 Subject: [PATCH] minor. --- dnsapi/dns_cx.sh | 4 ++-- dnsapi/dns_dp.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dnsapi/dns_cx.sh b/dnsapi/dns_cx.sh index 8c9d1b34..33e05e4b 100755 --- a/dnsapi/dns_cx.sh +++ b/dnsapi/dns_cx.sh @@ -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 diff --git a/dnsapi/dns_dp.sh b/dnsapi/dns_dp.sh index 67f26899..39046e2a 100755 --- a/dnsapi/dns_dp.sh +++ b/dnsapi/dns_dp.sh @@ -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