Output will be verbose, if running in a terminal, otherwise only warnings or error will be printed out.
This commit is contained in:
parent
a97dd2781e
commit
658dd5e210
@ -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
|
||||
|
@ -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
|
||||
# -
|
||||
|
Loading…
Reference in New Issue
Block a user