summaryrefslogtreecommitdiffstats
path: root/commands/hugo.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/hugo.go')
-rw-r--r--commands/hugo.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/commands/hugo.go b/commands/hugo.go
index f10fec00b..5169d65a5 100644
--- a/commands/hugo.go
+++ b/commands/hugo.go
@@ -284,10 +284,6 @@ func setValueFromFlag(flags *flag.FlagSet, key string, cfg config.Provider, targ
}
}
-func isTerminal() bool {
- return terminal.IsTerminal(os.Stdout)
-}
-
func (c *commandeer) fullBuild(noBuildLock bool) error {
var (
g errgroup.Group
@@ -297,7 +293,7 @@ func (c *commandeer) fullBuild(noBuildLock bool) error {
if !c.h.quiet {
fmt.Println("Start building sites … ")
fmt.Println(hugo.BuildVersionString())
- if isTerminal() {
+ if terminal.IsTerminal(os.Stdout) {
defer func() {
fmt.Print(showCursor + clearLine)
}()