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

View file

@ -4,13 +4,6 @@
# Date: Mon Nov 14 11:45:11 CET 2005 # Date: Mon Nov 14 11:45:11 CET 2005
# Last Modified: # Last Modified:
#
# temporary as long as inofficial
#
CCOLLECT_CONF=$HOME/crsnapshot/conf
# #
# where to find our configuration and temporary file # where to find our configuration and temporary file
# #
@ -62,6 +55,14 @@ if [ $# -lt 2 ]; then
usage usage
fi fi
#
# check for configuraton directory
#
if [ ! -d "$CCOLLECT_CONF" ]; then
errecho "Configuration \"$CCOLLECT_CONF\" not found."
exit 1
fi
# #
# Filter arguments # Filter arguments
# #