rsync-backup.in: Fix stupid bugs introduced in ec1d1af...
authorMark Wooding <mdw@distorted.org.uk>
Sun, 31 May 2015 01:37:11 +0000 (02:37 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 31 May 2015 01:50:17 +0000 (02:50 +0100)
  * Use `log', not `$log'.
  * Hash the correct file for the remote checksum.
  * Log the correct remote hash.

rsync-backup.in

index 43b5efb..b0c4086 100644 (file)
@@ -705,8 +705,8 @@ do_backup () {
     set -e
     case $dryrun in
       nil)
-       hrfs=$(hash_file "$fshashdir/$fs.bkp")
-       $log "remote fshash $HASH checksum: $hlfs"
+       hrfs=$(hash_file "new.fshash")
+       log "remote fshash $HASH checksum: $hrfs"
        $verbose " done"
        ;;
       t)
@@ -736,7 +736,7 @@ do_backup () {
     case $dryrun in
       nil)
        hlfs=$(hash_file "$localmap")
-       $log "local fshash $HASH checksum: $hlfs"
+       log "local fshash $HASH checksum: $hlfs"
        $verbose " done"
        ;;
       t)