From 26042b952e74fff49553aff8091d62606116a12b Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Thu, 13 Sep 2018 21:22:02 -0600 Subject: [PATCH] Removed 'quiet' logging. It's the default and writes directly to the logFile --- cfddns.sh | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/cfddns.sh b/cfddns.sh index 840ec61..97190fe 100755 --- a/cfddns.sh +++ b/cfddns.sh @@ -132,10 +132,10 @@ errorExplain[201]="Could not detect this machine's IP address. Please re-run thi errorExplain[254]="Could not connect with CloudFlare API. Please re-run this script later." -## Logging parameters -- default set to 'quiet' in same directory as this script +## Logging parameters -- default set to 'quiet' (i.e. the logFile) in same +## directory as this script scriptPath="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" logFile="$scriptPath/cfddns.log" -logQuietFile="$logFile" unset logVerboseFile @@ -144,7 +144,7 @@ if [ -z $1 ]; then scriptHelp 1 fi -while getopts ':f:r:i:46hxlvq' PARAMS; do +while getopts ':f:r:i:46hxlv' PARAMS; do case "$PARAMS" in f) # path to file with CloudFlare account details @@ -182,11 +182,6 @@ while getopts ':f:r:i:46hxlvq' PARAMS; do v) # Verbose logging mode logVerboseFile="$logFile" - unset logQuietFile - q) - # Quiet logging mode (default) - logQuietFile="$logFile" - unset logVerboseFile ?) scriptHelp 1 ;;