From cf10b5c797a7b7b4d2aea11770dbd4515e15b649 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Tue, 11 Jun 2019 22:11:38 +0100 Subject: [PATCH] fix(core): prevent invalid time interval error --- lgsm/functions/core_messages.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lgsm/functions/core_messages.sh b/lgsm/functions/core_messages.sh index e28e65765..c0fe5b634 100644 --- a/lgsm/functions/core_messages.sh +++ b/lgsm/functions/core_messages.sh @@ -30,6 +30,9 @@ fn_ansi_loader(){ fn_sleep_time(){ if [ "${sleeptime}" != "0" ]||[ "${travistest}" != "1" ]; then + if [ -z "${sleeptime}" ]; then + sleeptime=0.5 + fi sleep "${sleeptime}" fi }