From c155e0ccf557bd29763793ee713521e31220ea2b Mon Sep 17 00:00:00 2001 From: deajan Date: Thu, 17 Nov 2016 14:02:34 +0100 Subject: [PATCH] SLEEP_TIME default value --- dev/ofunctions.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dev/ofunctions.sh b/dev/ofunctions.sh index 22084b4..ac94d4f 100644 --- a/dev/ofunctions.sh +++ b/dev/ofunctions.sh @@ -1,6 +1,6 @@ #### MINIMAL-FUNCTION-SET BEGIN #### -## FUNC_BUILD=2016111505 +## FUNC_BUILD=2016111701 ## BEGIN Generic bash functions written in 2013-2016 by Orsiris de Jong - http://www.netpower.fr - ozy@netpower.fr ## To use in a program, define the following variables: @@ -14,6 +14,7 @@ ## Logger sets {ERROR|WARN}_ALERT variable when called with critical / error / warn loglevel ## When called from subprocesses, variable of main process can't be set. Status needs to be get via $RUN_DIR/$PROGRAM.Logger.{error|warn}.$SCRIPT_PID +#TODO: Rewrite Logger so we can decide what to send to stdout, stderr and logfile #TODO: Windows checks, check sendmail & mailsend if ! type "$BASH" > /dev/null; then @@ -55,8 +56,8 @@ if [ ! "$_DEBUG" == "yes" ]; then SLEEP_TIME=.05 # Tested under linux and FreeBSD bash, #TODO tests on cygwin / msys _VERBOSE=false else - if [ "$SLEEP_TIME" == "" ]; then - SLEEP_TIME=1 + if [ "$SLEEP_TIME" == "" ]; then # Set SLEEP_TIME as environment variable when runinng with bash -x in order to avoid spamming console + SLEEP_TIME=.05 fi trap 'TrapError ${LINENO} $?' ERR _VERBOSE=true