From 8491a54b0deef3fb6c0a078edb9d92a12af74036 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 23 Jul 2009 17:46:04 +0200 Subject: [PATCH] extract the interval handling from parsing Signed-off-by: Nico Schottelius --- ccollect.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ccollect.sh b/ccollect.sh index 9e100c4..a3a0973 100755 --- a/ccollect.sh +++ b/ccollect.sh @@ -165,6 +165,15 @@ while [ "$#" -ge 1 ]; do shift done +# +# Setup interval +# +if [ $# -ge 1 ]; then + export INTERVAL="$1" + shift +else + usage +fi # # check for configuraton directory