From 8cbf29bee5f27acf8f41b4abbe6e233aff5b715b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=A5=E6=B5=B7?= Date: Wed, 3 Mar 2021 10:14:29 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=94=E5=9B=9E=E6=9C=80=E7=BB=88=E6=89=A7?= =?UTF-8?q?=E8=A1=8C=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ardnspod | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ardnspod b/ardnspod index 67569d7..959d156 100644 --- a/ardnspod +++ b/ardnspod @@ -251,6 +251,10 @@ arDdnsCheck() { echo "Updating Record for $2.$1" postRs=$(arDdnsUpdate $ddnsIds $2 $hostIp $recordType) + errCode=$? echo "> $postRs" + if [ $errCode -ne 0 ]; then + return 1 + fi }