From ea979c5c93ef99dd80ceb63929981b563c9970fe Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Thu, 13 Sep 2018 21:26:24 -0600 Subject: [PATCH] IP: removed redundant mode notification. Logged IP being used. --- cfddns.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cfddns.sh b/cfddns.sh index bee9837..db3f655 100755 --- a/cfddns.sh +++ b/cfddns.sh @@ -217,12 +217,10 @@ mapfile -t cfDetails < "$accountFile" ## Get current IP address, if not provided in parameters if [ -z "$ipAddress" ]; then echo -e "\e[0;36mNo IP address for update provided. Detecting" \ - "this machine's IP address..." + "this machine's IP address..." >> $logVerboseFile if [ $ip4 -eq 1 ]; then - echo -e "\e[1;36m(set to IP4 mode)\e[0m" ipAddress=$(curl -s http://ipv4.icanhazip.com) elif [ $ip6 -eq 1 ]; then - echo -e "\e[1;36m(set to IP6 mode)\e[0m" ipAddress=$(curl -s http://ipv6.icanhazip.com) fi # check if curl reported any errors @@ -231,7 +229,7 @@ if [ -z "$ipAddress" ]; then quit 201 fi else - echo -e "\e[0;36mUsing IP address: $ipAddress" + echo -e "\e[0;36mUsing IP address: $ipAddress" >> $logFile fi