1. Cameron Simpson
  2. css

Commits

Cameron Simpson  committed 5204870

histbackup: more careful change checking - suppress spurious "no change" items

  • Participants
  • Parent commits f977c27
  • Branches default

Comments (0)

Files changed (1)

File bin/histbackup

View file
  • Ignore whitespace
     if [ $symlink_unchanged ]
     then
       $vecho "checking for changes to $src from $lastbackup ..."
-      changes=`dorsync "$src" "$dest/$lastbackup" ${1+"$@"} -niO | sed 1q`
+      changes=$( dorsync "$src" "$dest/$lastbackup" ${1+"$@"} -niO \
+               | sed -n '/^..         /!{ p; q; }' \
+               )
       if [ -z "$changes" ]
       then
         $vecho "no changes, symlinking last tree"