aboutsummaryrefslogtreecommitdiffhomepage
path: root/commands/hugo.go
diff options
context:
space:
mode:
authorJeff Warner <[email protected]>2020-08-22 00:56:43 -0700
committerGitHub <[email protected]>2020-08-22 09:56:43 +0200
commitd39636a5fc6bb82b3e0bd013858c7d116faa0c6b (patch)
treecbd50202ad98577e4401ce70d1ab48031ba0d59f /commands/hugo.go
parentad01aea3f426206c2b70bbd97c5d29562dfe954d (diff)
downloadhugo-d39636a5fc6bb82b3e0bd013858c7d116faa0c6b.tar.gz
hugo-d39636a5fc6bb82b3e0bd013858c7d116faa0c6b.zip
commands: Remove logic that hides 'Building Sites' message after build completes
Append newline to the message instead. Fixes #7579
Diffstat (limited to 'commands/hugo.go')
-rw-r--r--commands/hugo.go9
1 files changed, 1 insertions, 8 deletions
diff --git a/commands/hugo.go b/commands/hugo.go
index 5442c32d7..de4e3fbb2 100644
--- a/commands/hugo.go
+++ b/commands/hugo.go
@@ -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)