Show message when IP has not changed (always outputs status)

pull/103/head
Ben Li 11 hours ago
parent e9906c3aa0
commit c3951ebc21
  1. 2
      cloudflare-template.sh

@ -75,7 +75,7 @@ fi
old_ip=$(echo "$record" | sed -E 's/.*"content":"(([0-9]{1,3}\.){3}[0-9]{1,3})".*/\1/')
# Compare if they're the same
if [[ $CURRENT_IP == $old_ip ]]; then
logger "DDNS Updater: IP ($CURRENT_IP) for ${record_name} has not changed."
logger -s "DDNS Updater: IP ($CURRENT_IP) for ${record_name} has not changed."
exit 0
fi

Loading…
Cancel
Save