Instantly exit, when creating the destination fails

This commit is contained in:
Nico Schottelius 2006-10-25 08:10:21 +02:00
parent caa11c5626
commit 952adc32f2

View file

@ -381,7 +381,7 @@ while [ "$i" -lt "$no_sources" ]; do
echo "Beginning to backup, this may take some time..."
echo "Creating $destination_dir ..."
mkdir $VVERBOSE "$destination_dir"
mkdir $VVERBOSE "$destination_dir" || exit 1
#
# make an absolute path, perhaps $CCOLLECT_CONF is relative!