From: Mark Wooding Date: Sun, 31 May 2015 01:37:11 +0000 (+0100) Subject: rsync-backup.in: Fix stupid bugs introduced in ec1d1af... X-Git-Tag: 1.1.0~2 X-Git-Url: https://git.distorted.org.uk/~mdw/rsync-backup/commitdiff_plain/7a16a2374116aad0be4ef14ff32889a509ef1f9a rsync-backup.in: Fix stupid bugs introduced in ec1d1af... * Use `log', not `$log'. * Hash the correct file for the remote checksum. * Log the correct remote hash. --- diff --git a/rsync-backup.in b/rsync-backup.in index 43b5efb..b0c4086 100644 --- a/rsync-backup.in +++ b/rsync-backup.in @@ -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)