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

This commit is contained in:
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