Merge pull request #1660 from vadmeste/fix_mirror_crash

Fix a crash when --fake is coupled with --quiet in mirror cmd
This commit is contained in:
Harshavardhana
2016-04-02 10:55:47 -07:00
+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