From 142ec43f7cb3b9a881d6c00e2b61ba061d1f34d0 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 8 Dec 2005 12:18:44 +0100 Subject: [PATCH] Fixed bug whene there is no configuration directory --- ccollect.sh | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/ccollect.sh b/ccollect.sh index 6dd02c1..2435105 100755 --- a/ccollect.sh +++ b/ccollect.sh @@ -4,13 +4,6 @@ # Date: Mon Nov 14 11:45:11 CET 2005 # Last Modified: - -# -# temporary as long as inofficial -# -CCOLLECT_CONF=$HOME/crsnapshot/conf - - # # where to find our configuration and temporary file # @@ -62,6 +55,14 @@ if [ $# -lt 2 ]; then usage fi +# +# check for configuraton directory +# +if [ ! -d "$CCOLLECT_CONF" ]; then + errecho "Configuration \"$CCOLLECT_CONF\" not found." + exit 1 +fi + # # Filter arguments #