minimal changes..or I forgot what to type

This commit is contained in:
Nico Schottelius 2005-12-06 12:50:36 +01:00
parent 31beabcc87
commit 9b06628bb5

View file

@ -36,14 +36,26 @@ for backup in $CCOLLECT_CONF/*; do
echo "Ignoring $backup, is not a directory" echo "Ignoring $backup, is not a directory"
continue continue
fi fi
if [ ! -f "$c_source" ]; then if [ ! -f "$c_source" ]; then
echo "Skipping: Source $c_source is not a file:" echo "Skipping: Source $c_source is not a file"
continue continue
else else
source=$(cat $c_source) || continue source=$(cat $c_source)
if [ $? -ne 0 ]; then
echo "Skipping: Source $c_source is not readable"
continue
fi
fi fi
if [ ! -d "$c_dest" ]; then if [ ! -d "$c_dest" ]; then
echo "Skipping: Destination $c_dest does not link to a directory" echo "Skipping: Destination $c_dest does not link to a directory"
continue continue
fi fi
if [ -f "$c_exclude" ]; then
echo "Skipping: Destination $c_dest does not link to a directory"
continue
fi
done done