From ad910633a2a9ffeb12a0d085b145d3b50a80dfd3 Mon Sep 17 00:00:00 2001 From: Christoph Date: Thu, 18 Oct 2018 04:09:07 +0200 Subject: [PATCH] base_script.sh: add 'echo_wait'. --- snippets/base_script.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/snippets/base_script.sh b/snippets/base_script.sh index 9416af1..354c61e 100755 --- a/snippets/base_script.sh +++ b/snippets/base_script.sh @@ -161,6 +161,11 @@ echo_skipped() { echo -e "\033[75G[ \033[33m\033[1mskipped\033[m ]" fi } +echo_wait(){ + if $terminal ; then + echo -en "\033[75G[ \033[5m\033[1m...\033[m ]" + fi +} trim() { local var="$*"