From c43bac5911f8d97044b505466f21ed87f43d84fc Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 10 May 2012 18:47:11 -0300 Subject: Ensure that a non-zero rsync exit status is caught by our handler (#3892) --- handlers/rsync.in | 3 +++ 1 file changed, 3 insertions(+) (limited to 'handlers/rsync.in') diff --git a/handlers/rsync.in b/handlers/rsync.in index 884a885..73507c8 100644 --- a/handlers/rsync.in +++ b/handlers/rsync.in @@ -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 -- cgit v1.2.3