diff --git a/cp-main.go b/cp-main.go index 743d4dba..2680213d 100644 --- a/cp-main.go +++ b/cp-main.go @@ -356,9 +356,10 @@ func doCopySession(session *sessionV6) { wg.Wait() if !globalQuiet && !globalJSON { - progressReader.ProgressBar.Finish() - } - if globalQuiet { + if progressReader.ProgressBar.Total > 0 { + progressReader.ProgressBar.Finish() + } + } else { accntStat := accntReader.Stat() cpStatMessage := copyStatMessage{ Total: accntStat.Total, diff --git a/mirror-main.go b/mirror-main.go index d75c15d6..690a2a2d 100644 --- a/mirror-main.go +++ b/mirror-main.go @@ -339,7 +339,9 @@ func doMirrorSession(session *sessionV6) { wg.Wait() if !globalQuiet && !globalJSON { - progressReader.ProgressBar.Finish() + if progressReader.ProgressBar.Total > 0 { + progressReader.ProgressBar.Finish() + } } else { accntStat := accntReader.Stat() mrStatMessage := mirrorStatMessage{