Fix a crash when --fake is coupled with --quiet in mirror cmd

This commit is contained in:
Anis ELLEUCH
2016-04-02 15:10:53 +01:00
parent f55f64b5b9
commit d3d4afd223
+1 -1
View File
@@ -176,7 +176,7 @@ func doMirror(sURLs mirrorURLs, progressReader *progressBar, accountingReader *a
// doMirrorFake - Perform a fake mirror to update the progress bar appropriately.
func doMirrorFake(sURLs mirrorURLs, progressReader *progressBar) mirrorURLs {
if !globalDebug && !globalJSON {
if !globalDebug && !globalJSON && !globalQuiet {
progressReader.ProgressBar.Add64(sURLs.SourceContent.Size)
}
return sURLs