mirror of
https://github.com/openwrt/packages.git
synced 2025-12-26 11:16:31 +04:00
ddns-scripts: fix return codes if provider's data already up to date
Fix return codes, if ip data at Godaddy.com and Cloudflare.com are already up to date, handle it as succesful update. Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
This commit is contained in:
@@ -136,12 +136,12 @@ __DATA=$(sed -r 's/.+data":"(.+)","t.+/\1/g' $DATFILE)
|
||||
expand_ipv6 $__DATA __DATA
|
||||
[ "$__DATA" = "$__IPV6" ] && { # IPv6 no update needed
|
||||
write_log 7 "IPv6 at GoDaddy.com already up to date"
|
||||
return 127
|
||||
return 0
|
||||
}
|
||||
else
|
||||
[ "$__DATA" = "$__IP" ] && { # IPv4 no update needed
|
||||
write_log 7 "IPv4 at GoDaddy.com already up to date"
|
||||
return 127
|
||||
return 0
|
||||
}
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user