mirror of
https://github.com/deajan/osync
synced 2024-11-17 09:25:42 +00:00
Allow set external sleep time in debug mode
This commit is contained in:
parent
9cafba436d
commit
6cc1286fe9
@ -1,6 +1,6 @@
|
|||||||
#### MINIMAL-FUNCTION-SET BEGIN ####
|
#### MINIMAL-FUNCTION-SET BEGIN ####
|
||||||
|
|
||||||
## FUNC_BUILD=2016111404
|
## FUNC_BUILD=2016111501
|
||||||
## BEGIN Generic bash functions written in 2013-2016 by Orsiris de Jong - http://www.netpower.fr - ozy@netpower.fr
|
## 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:
|
## To use in a program, define the following variables:
|
||||||
@ -52,7 +52,9 @@ if [ ! "$_DEBUG" == "yes" ]; then
|
|||||||
SLEEP_TIME=.05 # Tested under linux and FreeBSD bash, #TODO tests on cygwin / msys
|
SLEEP_TIME=.05 # Tested under linux and FreeBSD bash, #TODO tests on cygwin / msys
|
||||||
_VERBOSE=false
|
_VERBOSE=false
|
||||||
else
|
else
|
||||||
SLEEP_TIME=1
|
if [ "$SLEEP_TIME" == "" ]; then
|
||||||
|
SLEEP_TIME=1
|
||||||
|
fi
|
||||||
trap 'TrapError ${LINENO} $?' ERR
|
trap 'TrapError ${LINENO} $?' ERR
|
||||||
_VERBOSE=true
|
_VERBOSE=true
|
||||||
fi
|
fi
|
||||||
@ -1024,7 +1026,7 @@ ENDSSH
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function OldGetRemoteOS {
|
function oldGetRemoteOS {
|
||||||
__CheckArguments 0 $# ${FUNCNAME[0]} "$@" #__WITH_PARANOIA_DEBUG
|
__CheckArguments 0 $# ${FUNCNAME[0]} "$@" #__WITH_PARANOIA_DEBUG
|
||||||
|
|
||||||
local retval
|
local retval
|
||||||
|
Loading…
Reference in New Issue
Block a user