Skip to content
Snippets Groups Projects
Commit c43bac59 authored by rhatto's avatar rhatto
Browse files

Ensure that a non-zero rsync exit status is caught by our handler (#3892)

parent c9aa8b1d
No related branches found
No related tags found
No related merge requests found
......@@ -1121,6 +1121,9 @@ for SECTION in $include; do
set_filelist
set_dest
# Ensure that a non-zero rsync exit status is caught by our handler
set -o pipefail
info "Syncing $SECTION on $dest_path..."
debug $nice $rsync "${rsync_options[@]}" $filelist_flag $excludes $batch_option $orig $dest_path
$nice $rsync "${rsync_options[@]}" $filelist_flag $excludes $batch_option $orig $dest_path | tee -a $log
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment