Просмотр исходного кода

fix(core): prevent invalid time interval error

Daniel Gibbs 7 лет назад
Родитель
Сommit
cf10b5c797
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      lgsm/functions/core_messages.sh

+ 3 - 0
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
 }