Last active
August 29, 2015 13:56
-
-
Save izmailoff/8792887 to your computer and use it in GitHub Desktop.
This file contains hidden or 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/bash | |
# Run with a single argument - number of minutes remaining. | |
# For example for 1 min countdown use: | |
# ./go_home_countdown.sh 1 | |
set -e | |
remaining=$(( $1 * 60 )) | |
while [ "$remaining" -ge 0 ] | |
do | |
clear | |
banner "$remaining sec" | |
sleep 1 | |
remaining=$(( $remaining - 1 )) | |
done | |
clear | |
banner "Hooray!" | |
banner "Let's" | |
banner "go..." | |
banner "HOME!!!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment