Added termination, if pre_exec in source fails

This commit is contained in:
Nico Schottelius 2006-03-19 01:02:28 +01:00
parent ba60e59a97
commit 98ad607421
1 changed files with 5 additions and 0 deletions

View File

@ -282,6 +282,11 @@ while [ "$i" -lt "$no_shares" ]; do
echo "Executing $c_pre_exec ..."
"$c_pre_exec"
echo "Finished ${c_pre_exec}."
if [ $? -ne 0 ]; then
echo "$c_pre_exec failed, aborting backup."
exit 1
fi
fi
# exclude