X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=home%2Fbin%2Falarm;h=fd0b055d26b90178b7eadd82533c327ac51d9852;hb=cf93be102119f6ffc0584388f7cce9f2da5e116f;hp=472e7f9e4038f4d58df83514b6f77caca8c703d6;hpb=e2c4b04081496553dd668ffdca8d1948318a1cfe;p=khome.git diff --git a/home/bin/alarm b/home/bin/alarm index 472e7f9..fd0b055 100755 --- a/home/bin/alarm +++ b/home/bin/alarm @@ -7,7 +7,14 @@ case "$1" seconds="$1" esac -snore "$seconds" +if which snore +then + _sleep=snore; +else + _sleep=sleep; +fi + +"$_sleep" "$seconds" printf "!!! TIMES UP !!!\n"