From 952adc32f2033256624facf5b0c9ee668ff3ec29 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Wed, 25 Oct 2006 08:10:21 +0200 Subject: [PATCH] Instantly exit, when creating the destination fails --- ccollect.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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!