fixes get record id error.

arDdnsCheck afferent only one parameter to arDdnsInfo, so gets all records id and always use the first one.
This commit is contained in:
wzhy90 authored and GitHub committed 2017-04-04 16:28:09 +08:00
1 parent f471b3502b
commit a5c6eabce2
1 file changed
+1 -1
+1 -1
View File
@@ -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