Skip to content
Snippets Groups Projects
Commit 8e3981f4 authored by intrigeri's avatar intrigeri
Browse files

Merge remote-tracking branch 'sarava/bug/3882'

parents b7a92b20 39bb9e60
Branches
Tags
No related merge requests found
......@@ -277,9 +277,7 @@ function eval_config {
mv=move_files
fi
for path in $exclude; do
excludes="$excludes --exclude=$path"
done
excludes=`echo "$exclude" | @SED@ "s/^/--exclude='/g" -e "s/ /' --exclude='/g" -e "s/$/'/"`
}
......@@ -1132,8 +1130,8 @@ for SECTION in $include; do
set_dest
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
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
if [ "$?" != "0" ]; then
fatal "Rsync error when trying to transfer $SECTION"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment