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