Merge pull request #19 from wzhy90/master

fixes get record id error.
This commit is contained in:
Fan Jiang authored and GitHub committed 2017-04-04 16:42:20 +08:00
commit a24824f78d
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