hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit 50a03a5acc7c200c795590c3f4b964fdc56085f2
parent ba94abbf5dd90f989242af8a7027d67a572a6128
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Tue, 27 Feb 2018 21:04:39 +0100

commands: Do not print build total when --quiet is set

Fixes #4456

Diffstat:
Mcommands/hugo.go | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/commands/hugo.go b/commands/hugo.go
@@ -776,6 +776,9 @@ func (c *commandeer) copyStaticTo(dirs *src.Dirs, publishDir string) (uint64, er
 }
 
 func (c *commandeer) timeTrack(start time.Time, name string) {
+	if quiet {
+		return
+	}
 	elapsed := time.Since(start)
 	c.Logger.FEEDBACK.Printf("%s in %v ms", name, int(1000*elapsed.Seconds()))
 }