The template to display something in progress. and colored message will be displayed when it is finished.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# See: http://www.m-bsys.com/linux/echo-color-1 | |
TIME=10 | |
echo -n "starting server" | |
while [ $TIME -gt 0 ] | |
do | |
echo -n "." | |
sleep 1 | |
TIME=$(expr $TIME - 1) | |
done | |
echo -ne " \e[32mDONE\e[m\n" # "Done" is appeared with green color |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment