From e2062becd20d06f48bba63e8dd74fa78b16bacf4 Mon Sep 17 00:00:00 2001 From: ProfFan Date: Sat, 24 Oct 2015 18:49:15 +0800 Subject: [PATCH] Fixed a typo --- ddnspod.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ddnspod.sh b/ddnspod.sh index 88d216c..7935b67 100644 --- a/ddnspod.sh +++ b/ddnspod.sh @@ -45,7 +45,7 @@ arDdnsUpdate() { recordRS=$(arApiPost "Record.Modify" "domain_id=${domainID}&record_id=${recordID}&sub_domain=${2}&record_type=A&value=${myIP}&record_line=默认") recordCD=$(echo $recordRS | sed 's/.\+{"code":"\([0-9]\+\)".\+/\1/') # Output IP - if [ "$recordCD" == "1" ]; then + if [ "$recordCD" = "1" ]; then echo $recordRS | sed 's/.\+,"value":"\([0-9\.]\+\)".\+/\1/' return 1 fi