Fixed bug whene there is no configuration directory

This commit is contained in:
Nico Schottelius 2005-12-08 12:18:44 +01:00
parent 0382078531
commit 142ec43f7c
1 changed files with 8 additions and 7 deletions

View File

@ -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
#