From f4f5b3b7aff2ac45ee035f54d6e8899ff963d133 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 9 Dec 2013 20:07:19 +0100 Subject: noise: RIP --- .graveyard/noise/modules/sleep | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 .graveyard/noise/modules/sleep (limited to '.graveyard/noise/modules/sleep') diff --git a/.graveyard/noise/modules/sleep b/.graveyard/noise/modules/sleep new file mode 100755 index 00000000..89712cac --- /dev/null +++ b/.graveyard/noise/modules/sleep @@ -0,0 +1,10 @@ +#! /bin/sh +case "$1" in + (--help) echo "pause for NUMBER seconds" ;; + (*) + if echo "$1" | grep -Eq '^([0-9]+(\.[0-9]*)?|[0-9]*\.[0-9]+)$' ; then + sleep "$1" + else + echo 'FAIL: $1 is not a number' + fi +esac -- cgit v1.2.3