From bc25190fc719f9c858d9ed06eb85444a45f20d80 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Mon, 10 Apr 2017 16:07:22 +0100 Subject: [PATCH] Fix misleading log message with --dry-run - fixes #1309 --- fs/operations.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/operations.go b/fs/operations.go index 9adcff4bf..752203106 100644 --- a/fs/operations.go +++ b/fs/operations.go @@ -447,7 +447,7 @@ func deleteFileWithBackupDir(dst Object, backupDir Fs) (err error) { if err != nil { Stats.Error() Errorf(dst, "Couldn't %s: %v", action, err) - } else { + } else if !Config.DryRun { Infof(dst, actioned) } Stats.DoneChecking(dst.Remote())