shithub: hugo

Download patch

ref: d39636a5fc6bb82b3e0bd013858c7d116faa0c6b
parent: ad01aea3f426206c2b70bbd97c5d29562dfe954d
author: Jeff Warner <jwarner112@users.noreply.github.com>
date: Fri Aug 21 20:56:43 EDT 2020

commands: Remove logic that hides 'Building Sites' message after build completes

Append newline to the message instead.

Fixes #7579

--- a/commands/hugo.go
+++ b/commands/hugo.go
@@ -278,14 +278,7 @@
 
 func isTerminal() bool {
 	return terminal.IsTerminal(os.Stdout)
-
 }
-func ifTerminal(s string) string {
-	if !isTerminal() {
-		return ""
-	}
-	return s
-}
 
 func (c *commandeer) fullBuild() error {
 
@@ -295,7 +288,7 @@
 	)
 
 	if !c.h.quiet {
-		fmt.Print(ifTerminal(hideCursor) + "Building sites … ")
+		fmt.Println("Start building sites … ")
 		if isTerminal() {
 			defer func() {
 				fmt.Print(showCursor + clearLine)