scripts/timer updated to have a non-terrible help message
This commit is contained in:
parent
26ea1e5c92
commit
2ea5dbd49f
|
@ -3,7 +3,7 @@
|
||||||
case $0 in
|
case $0 in
|
||||||
*"timer"*)
|
*"timer"*)
|
||||||
[ $# -ne 2 ] && printf "specify minutes and \
|
[ $# -ne 2 ] && printf "specify minutes and \
|
||||||
seconds\n" && exit 1
|
seconds\n" && exit 1
|
||||||
sleep $(($1 * 60 + $2))
|
sleep $(($1 * 60 + $2))
|
||||||
printf "your timer is done\a\n"
|
printf "your timer is done\a\n"
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in New Issue