From d5625e4bd28a9b3066777c539b05aef3fc551b8f Mon Sep 17 00:00:00 2001 From: Thomas Bächler Date: Mon, 22 Feb 2010 18:49:02 +0100 Subject: Add 'sleep' hook --- hooks/sleep | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 hooks/sleep (limited to 'hooks') diff --git a/hooks/sleep b/hooks/sleep new file mode 100644 index 0000000..bade71a --- /dev/null +++ b/hooks/sleep @@ -0,0 +1,9 @@ +# vim:set ft=sh: +run_hook () +{ + if [ -z "${sleeptime}" ] || ! [ "${sleeptime}" -gt 0 ]; then + sleeptime=5 + fi + msg "Sleeping for ${sleeptime} seconds." + sleep ${sleeptime} +} -- cgit v1.2.3-24-g4f1b