Fixed bug in rdiff.helper that kept include and exclude lines from being put in the...
authormicah <micah@758a04ac-41e6-0310-8a23-8373a73cc35d>
Sat, 5 Nov 2005 20:47:44 +0000 (20:47 +0000)
committermicah <micah@758a04ac-41e6-0310-8a23-8373a73cc35d>
Sat, 5 Nov 2005 20:47:44 +0000 (20:47 +0000)
git-svn-id: http://code.autistici.org/svn/backupninja/trunk@221 758a04ac-41e6-0310-8a23-8373a73cc35d

handlers/rdiff.helper

index fdbdefe9ab5675b73df98b265d1bbec9a5fb0d87..c69184862fb81e87f8c011555047911cd931e342 100644 (file)
@@ -189,10 +189,10 @@ keep = $rdiff_keep
 EOF
     set -o noglob
     for ((i=0; i < ${#rdiff_includes[@]} ; i++)); do
-        echo include = ${rdiff_includes[$i]}
+        echo "include = ${rdiff_includes[$i]}" >> $next_filename
     done
-    for ((i=0; i < ${#rdiff_includes[@]} ; i++)); do
-        echo exclude = ${rdiff_excludes[$i]}
+    for ((i=0; i < ${#rdiff_excludes[@]} ; i++)); do
+        echo exclude = ${rdiff_excludes[$i]} >> $next_filename
     done
     set +o noglob
     cat >> $next_filename <<EOF