|
|
@ -51,7 +51,11 @@ if ! [[ "$num" =~ ^-?[[:digit:]]+$ ]]; then
|
|
|
|
usage "invalid non-integer '$num' given for first argument"
|
|
|
|
usage "invalid non-integer '$num' given for first argument"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if ! [[ "$sleep_secs" =~ ^[[:digit:]]+(\.[[:digit:]]+)?$ ]]; then
|
|
|
|
if ! is_float "$start_delay"; then
|
|
|
|
|
|
|
|
usage "invalid non-float '$START_DELAY' found in environment for \$START_DELAY"
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ! is_float "$sleep_secs"; then
|
|
|
|
usage "invalid non-float '$SLEEP_SECS' found in environment for \$SLEEP_SECS"
|
|
|
|
usage "invalid non-float '$SLEEP_SECS' found in environment for \$SLEEP_SECS"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|