Commit ad3b9157 authored by ungleich@saz.sh's avatar ungleich@saz.sh

make rsync return code available in post_exec

parent 109b70ea
Pipeline #1454 passed with stage
in 36 seconds
......@@ -824,6 +824,11 @@ while [ "${source_no}" -lt "${no_sources}" ]; do
rsync "$@" "${source}" "${destination_dir}"; ret=$?
_techo "Finished backup (rsync return code: $ret)."
#
# export rsync return code, might be useful in post_exec
#
export rsync_ret=$ret
#
# Set modification time (mtime) to current time, if sorting by mtime is enabled
#
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment