From c583d6bb49a7ade30c511b0ed6f4fc21be7f721b Mon Sep 17 00:00:00 2001 From: neil Date: Fri, 30 Sep 2016 22:43:24 +0800 Subject: [PATCH] fix sleep display --- acme.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/acme.sh b/acme.sh index 3b3891fa..90dd23e4 100755 --- a/acme.sh +++ b/acme.sh @@ -1250,16 +1250,15 @@ _stopserver(){ _sleep() { _sleep_sec="$1" if [ "$__INTERACTIVE" ] ; then - printf "\n" _sleep_c="$_sleep_sec" while [ "$_sleep_c" -ge "0" ] ; do - printf "\r" + printf "\r \r" __green "$_sleep_c" _sleep_c="$(_math $_sleep_c - 1)" sleep 1 done - printf "\n" + printf "\r" else sleep "$_sleep_sec" fi @@ -1308,7 +1307,7 @@ _starttlsserver() { fi serverproc="$!" - _sleep 2 + sleep 2 _debug serverproc $serverproc }