Added termination, if pre_exec in source fails
This commit is contained in:
parent
ba60e59a97
commit
98ad607421
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue