From 28fb327f01cfa5bd28e19d442f888153c34a6bbc Mon Sep 17 00:00:00 2001 From: Michael Hoennig Date: Fri, 13 Sep 2024 15:55:42 +0200 Subject: [PATCH] waiting animation for git-pull-and-if-origin-changed-run-tests --- bin/git-pull-and-if-origin-changed-run-tests | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/bin/git-pull-and-if-origin-changed-run-tests b/bin/git-pull-and-if-origin-changed-run-tests index bc0a5da1..f955323d 100755 --- a/bin/git-pull-and-if-origin-changed-run-tests +++ b/bin/git-pull-and-if-origin-changed-run-tests @@ -21,7 +21,16 @@ while true; do ./gradlew test fi - echo -e "waiting for changes..." - sleep 10 - echo -e "\r\033[K" + # wait 10s with a little animation + echo -e -n " waiting for changes (/) ..." + sleep 2 + echo -e -n "\r\033[K waiting for changes (-) ..." + sleep 2 + echo -e -n "\r\033[K waiting for changes (\) ..." + sleep 2 + echo -e -n "\r\033[K waiting for changes (|) ..." + sleep 2 + echo -e -n "\r\033[K waiting for changes ( ) ... " + sleep 2 + echo -e -n "\r\033[K" done