From 787dce0bac224b0c50d9e665ee6fd8a2423944f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=A5=E6=B5=B7?= Date: Wed, 3 Mar 2021 11:03:04 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=90=E7=AE=97=E7=AC=A6=E4=B8=80=E8=87=B4?= =?UTF-8?q?=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ardnspod | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ardnspod b/ardnspod index 35a61d0..a558189 100644 --- a/ardnspod +++ b/ardnspod @@ -195,7 +195,7 @@ arDdnsUpdate() { recordCd=$(echo $recordRs | sed 's/.*{"code":"\([0-9]*\)".*/\1/') # Output Result - if [ "$recordIp" = "$4" ] && [ "$recordCd" = "1" ]; then + if [ "$recordIp" == "$4" ] && [ "$recordCd" == "1" ]; then echo "arDdnsUpdate - success" return 0 else @@ -220,7 +220,7 @@ arDdnsCheck() { local postRs echo "Fetching Host Ip" - if [ "$3" = "6" ]; then + if [ "$3" == "6" ]; then recordType=AAAA hostIp=$(arWanIp6) else