Removed 'quiet' logging.
It's the default and writes directly to the logFile
This commit is contained in:
parent
e24f578b8f
commit
26042b952e
11
cfddns.sh
11
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."
|
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)"
|
scriptPath="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
logFile="$scriptPath/cfddns.log"
|
logFile="$scriptPath/cfddns.log"
|
||||||
logQuietFile="$logFile"
|
|
||||||
unset logVerboseFile
|
unset logVerboseFile
|
||||||
|
|
||||||
|
|
||||||
@ -144,7 +144,7 @@ if [ -z $1 ]; then
|
|||||||
scriptHelp 1
|
scriptHelp 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
while getopts ':f:r:i:46hxlvq' PARAMS; do
|
while getopts ':f:r:i:46hxlv' PARAMS; do
|
||||||
case "$PARAMS" in
|
case "$PARAMS" in
|
||||||
f)
|
f)
|
||||||
# path to file with CloudFlare account details
|
# path to file with CloudFlare account details
|
||||||
@ -182,11 +182,6 @@ while getopts ':f:r:i:46hxlvq' PARAMS; do
|
|||||||
v)
|
v)
|
||||||
# Verbose logging mode
|
# Verbose logging mode
|
||||||
logVerboseFile="$logFile"
|
logVerboseFile="$logFile"
|
||||||
unset logQuietFile
|
|
||||||
q)
|
|
||||||
# Quiet logging mode (default)
|
|
||||||
logQuietFile="$logFile"
|
|
||||||
unset logVerboseFile
|
|
||||||
?)
|
?)
|
||||||
scriptHelp 1
|
scriptHelp 1
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user