Commit 4e8a085a authored by Wayne Davison's avatar Wayne Davison

Use $diffopt instead of -u.

parent fb22c277
...@@ -26,14 +26,14 @@ echo "Extending the other file" >> "$name2" ...@@ -26,14 +26,14 @@ echo "Extending the other file" >> "$name2"
checkit "$RSYNC -avv --backup --backup-dir=\"$bakdir\" \"$fromdir/\" \"$todir/\"" "$fromdir" "$todir" checkit "$RSYNC -avv --backup --backup-dir=\"$bakdir\" \"$fromdir/\" \"$todir/\"" "$fromdir" "$todir"
diff -ru "$chkdir" "$bakdir" diff -r $diffopt "$chkdir" "$bakdir"
echo "Extending the file again" >> "$name1" echo "Extending the file again" >> "$name1"
echo "Extending the other file again" >> "$name2" echo "Extending the other file again" >> "$name2"
checkit "$RSYNC -avv --inplace --backup --backup-dir=\"$bakdir\" \"$fromdir/\" \"$todir/\"" "$fromdir" "$todir" checkit "$RSYNC -avv --inplace --backup --backup-dir=\"$bakdir\" \"$fromdir/\" \"$todir/\"" "$fromdir" "$todir"
diff -ru "$chkdir" "$bakdir" diff -r $diffopt "$chkdir" "$bakdir"
# The script would have aborted on error, so getting here means we've won. # The script would have aborted on error, so getting here means we've won.
exit 0 exit 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment