Add _exit_err
This commit is contained in:
parent
5d1e7f1efb
commit
19d84f65da
1 changed files with 15 additions and 2 deletions
17
ccollect.sh
17
ccollect.sh
|
@ -40,6 +40,16 @@ PARALLEL=""
|
|||
trap "rm -f \"$TMP\"" 1 2 15
|
||||
|
||||
|
||||
#
|
||||
# Functions
|
||||
#
|
||||
|
||||
_exit_err()
|
||||
{
|
||||
echo "$@"
|
||||
exit 1
|
||||
}
|
||||
|
||||
add_name()
|
||||
{
|
||||
sed "s:^:\[$name\] :"
|
||||
|
@ -227,8 +237,11 @@ while [ "$i" -lt "$no_sources" ]; do
|
|||
c_rsync_extra="$backup/rsync_options"
|
||||
c_summary="$backup/summary"
|
||||
|
||||
c_incomplete="$backup/incomplete_remove"
|
||||
c_marker=".ccollect-${CDATE}.$$"
|
||||
#
|
||||
# FIXME: enable in 0.6
|
||||
#
|
||||
#c_incomplete="$backup/incomplete_remove"
|
||||
#c_marker=".ccollect-${CDATE}.$$"
|
||||
|
||||
c_pre_exec="$backup/pre_exec"
|
||||
c_post_exec="$backup/post_exec"
|
||||
|
|
Loading…
Reference in a new issue