diff --git a/ccollect.sh b/ccollect.sh index c89e428..c521a0c 100755 --- a/ccollect.sh +++ b/ccollect.sh @@ -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!