X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=home%2Fbin%2Falarm;h=fd0b055d26b90178b7eadd82533c327ac51d9852;hb=HEAD;hp=472e7f9e4038f4d58df83514b6f77caca8c703d6;hpb=6769cf7022b1fb3b88e4fac5131e224b65cc6c91;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"