Skip to content

Commit

Permalink
commands: Remove logic that hides 'Building Sites' message after buil…
Browse files Browse the repository at this point in the history
…d completes

Append newline to the message instead.

Fixes #7579
  • Loading branch information
jwarner112 authored Aug 22, 2020
1 parent ad01aea commit d39636a
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions commands/hugo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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)
Expand Down

0 comments on commit d39636a

Please sign in to comment.