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

Append newline to the message instead.

Fixes #7579
This commit is contained in:
Jeff Warner authored and GitHub committed 2020-08-22 09:56:43 +02:00
1 parent ad01aea3f4
commit d39636a5fc
1 file changed
+1 -8
+1 -8
View 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)