waiting animation for git-pull-and-if-origin-changed-run-tests

This commit is contained in:
Michael Hoennig 2024-09-13 15:55:42 +02:00
parent 5183dcd044
commit ba226fd802

View File

@ -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