From f3e9cbc7bd105ff63f1abcec9e1daf9411473c5c Mon Sep 17 00:00:00 2001
From: Kartik Singhal <kartiksinghal@gmail.com>
Date: Fri, 31 Oct 2014 11:43:44 +0530
Subject: [PATCH] Fix #593 problem with `hugo -w`

---
 commands/hugo.go | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/commands/hugo.go b/commands/hugo.go
index 2fece29c..838fd94a 100644
--- a/commands/hugo.go
+++ b/commands/hugo.go
@@ -352,10 +352,10 @@ func NewWatcher(port int) error {
 				}
 
 				if static_changed {
-					fmt.Print("Static file changed, syncing\n\n")
+					jww.FEEDBACK.Println("Static file changed, syncing\n")
 					utils.StopOnErr(copyStatic(), fmt.Sprintf("Error copying static files to %s", helpers.AbsPathify(viper.GetString("PublishDir"))))
 
-					if !viper.GetBool("DisableLiveReload") {
+					if !BuildWatch && !viper.GetBool("DisableLiveReload") {
 						// Will block forever trying to write to a channel that nobody is reading if livereload isn't initalized
 
 						// force refresh when more than one file
@@ -376,7 +376,7 @@ func NewWatcher(port int) error {
 					fmt.Println(time.Now().Format(layout))
 					utils.StopOnErr(buildSite(true))
 
-					if !viper.GetBool("DisableLiveReload") {
+					if !BuildWatch && !viper.GetBool("DisableLiveReload") {
 						// Will block forever trying to write to a channel that nobody is reading if livereload isn't initalized
 						livereload.ForceRefresh()
 					}
-- 
2.30.2