From a5c6eabce28c77861a7b247264d10742ff558aef Mon Sep 17 00:00:00 2001 From: wzhy90 Date: Tue, 4 Apr 2017 16:28:09 +0800 Subject: [PATCH] fixes get record id error. arDdnsCheck afferent only one parameter to arDdnsInfo, so gets all records id and always use the first one. --- ddnspod.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ddnspod.sh b/ddnspod.sh index 542a8c5..fd54c8a 100755 --- a/ddnspod.sh +++ b/ddnspod.sh @@ -190,7 +190,7 @@ arDdnsCheck() { local hostIP=$(arIpAddress) echo "Updating Domain: ${2}.${1}" echo "hostIP: ${hostIP}" - lastIP=$(arDdnsInfo "$1 $2") + lastIP=$(arDdnsInfo $1 $2) if [ $? -eq 0 ]; then echo "lastIP: ${lastIP}" if [ "$lastIP" != "$hostIP" ]; then