Output will be verbose, if running in a terminal, otherwise only warnings or error will be printed out.

This commit is contained in:
Christoph 2017-02-21 02:53:09 +01:00
parent a97dd2781e
commit 658dd5e210
2 changed files with 25 additions and 2 deletions

View File

@ -79,6 +79,22 @@ trim() {
}
#---------------------------------------
#-----------------------------
# Check some prerequisites
#-----------------------------
#---------------------------------------
if [[ -t 1 ]] ; then
terminal=true
LOGGING=true
else
terminal=false
LOGGING=false
fi
#---------------------------------------
#-----------------------------
# Check some prerequisites

View File

@ -4,8 +4,15 @@
#-----------------------------
#---------------------------------------
#LOGGING=true
LOGGING=false
# ---
# - LOGGING
# -
# - This Parameter is now obsolete. If script is running in a terminal, then output ist verbose,
# - the output will be verbos. If running as cronjob, output will only be written, if warnings or
# - errors occurs.
# ---
# - What to check
# -