Error on rsync transmission never triggers a fatal message
In the current rsync handler code, we have:
$nice $rsync "${rsync_options[@]}" $filelist_flag $excludes $batch_option $orig $dest_path | tee -a $log if [ "$?" != "0" ]; then fatal "Rsync error when trying to transfer $SECTION" fi
The problem is that due to piping the rsync output to "tee" program the handler will never trigger the fatal message:
When running the following commands we get an exit status 1:
rsync = --non-existing-bla --syntax-error-coming up echo $?
But we get 0 when piping to @tee@:
rsync = --non-existing-bla --syntax-error-coming up | tee test_file echo $?
(from redmine: created on 2012-04-17, closed on 2012-05-15)