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} }