From e2b7b5976d35694965f74fea34a5c41921725fd9 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Fri, 14 Sep 2018 00:21:42 -0600 Subject: [PATCH] Bugfix: IP address now logged in all circumstances. --- cfddns.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cfddns.sh b/cfddns.sh index ae106cc..3918fef 100755 --- a/cfddns.sh +++ b/cfddns.sh @@ -239,10 +239,9 @@ if [ -z "$ipAddress" ]; then if [ "$ipLookupResult" -ne 0 ]; then quit 201 fi -else - echo -e "\e[1;36m[`date +%Y-%m-%d` `date +%H:%M:%S`] Using IP address:" \ - "$ipAddress" >> $logFile fi +echo -e "\e[1;36m[`date +%Y-%m-%d` `date +%H:%M:%S`] Using IP address:" \ + "$ipAddress" >> $logFile ## Check if desired record(s) exist at CloudFlare