Created
April 12, 2018 13:48
-
-
Save dameninngenn/66383054e6922fc319a57b917b691dbd to your computer and use it in GitHub Desktop.
タバタタイマー
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 | |
function main() { | |
loop_count=0 | |
if [ $# -eq 0 ]; then | |
loop_count=8 | |
else | |
loop_count=$1 | |
fi | |
say "${loop_count}セット" | |
for i in `seq ${loop_count}` | |
do | |
interval | |
say start | |
work_out | |
say おわり | |
done | |
say お疲れ様でした | |
} | |
function three_count() { | |
tput bel | |
sleep 1 | |
tput bel | |
sleep 1 | |
tput bel | |
sleep 1 | |
} | |
function interval() { | |
sleep 6 | |
three_count | |
} | |
function work_out() { | |
sleep 16 | |
three_count | |
} | |
main |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment