Fixed bug whene there is no configuration directory
This commit is contained in:
parent
0382078531
commit
142ec43f7c
1 changed files with 8 additions and 7 deletions
15
ccollect.sh
15
ccollect.sh
|
@ -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
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue