commands: Remove logic that hides 'Building Sites' message after build completes
authorJeff Warner <jwarner112@users.noreply.github.com>
Sat, 22 Aug 2020 07:56:43 +0000 (00:56 -0700)
committerGitHub <noreply@github.com>
Sat, 22 Aug 2020 07:56:43 +0000 (09:56 +0200)
Append newline to the message instead.

Fixes #7579

commands/hugo.go

index 5442c32d708a447a8f745af11cb34a9e8166e747..de4e3fbb2537514d0f5b7a7a60643c0092819cfb 100644 (file)
@@ -278,13 +278,6 @@ func setValueFromFlag(flags *flag.FlagSet, key string, cfg config.Provider, targ
 
 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 @@ func (c *commandeer) fullBuild() error {
        )
 
        if !c.h.quiet {
-               fmt.Print(ifTerminal(hideCursor) + "Building sites … ")
+               fmt.Println("Start building sites … ")
                if isTerminal() {
                        defer func() {
                                fmt.Print(showCursor + clearLine)