Browse files

Ensure the bell can be triggered if no speech software is found.

  • Loading branch information...
1 parent 6d8ab4d commit ab255022297dd99135968c3941e0c39d46f1700f @kgaughan kgaughan committed Oct 1, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 pom
View
3 pom
@@ -56,8 +56,9 @@ function finish {
function safe_say {
for cmd in espeak say
do
- which $cmd >/dev/null && $cmd "$1" 2>/dev/null && break
+ which $cmd >/dev/null && $cmd "$1" 2>/dev/null && return
done
+ return 1
}
# Try to ring the terminal bell.

0 comments on commit ab25502

Please sign in to comment.