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:
1 parent
f471b3502b
commit
a5c6eabce2
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user