summaryrefslogtreecommitdiffstats
path: root/hooks/sleep
blob: bade71a47b58fe3bec83628932d496436b4a28cf (plain)
1
2
3
4
5
6
7
8
9
# vim:set ft=sh:
run_hook ()
{
    if [ -z "${sleeptime}" ] || ! [ "${sleeptime}" -gt 0 ]; then
        sleeptime=5
    fi
    msg "Sleeping for ${sleeptime} seconds."
    sleep ${sleeptime}
}