Only show transfer stats on commands which transfer stuff - fixes #849

This commit is contained in:
Nick Craig-Wood
2016-12-04 16:52:24 +00:00
parent 716ce49ce9
commit 2cbdb95ce5
22 changed files with 30 additions and 25 deletions

View File

@@ -23,7 +23,7 @@ don't match. It doesn't alter the source or destination.
Run: func(command *cobra.Command, args []string) {
cmd.CheckArgs(2, 2, command, args)
fsrc, fdst := cmd.NewFsSrcDst(args)
cmd.Run(false, command, func() error {
cmd.Run(false, false, command, func() error {
return fs.Check(fdst, fsrc)
})
},