From db18fd1582a7f7b1697629219d7a31dc92f829b2 Mon Sep 17 00:00:00 2001 From: Steve Francia Date: Tue, 26 Jan 2016 14:10:18 -0500 Subject: [PATCH] Ignore .DS_Store changes (thumbnail cache file on mac) --- commands/hugo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/hugo.go b/commands/hugo.go index 89a2f7ed5..35acbf290 100644 --- a/commands/hugo.go +++ b/commands/hugo.go @@ -658,7 +658,7 @@ func NewWatcher(port int) error { for _, ev := range evs { ext := filepath.Ext(ev.Name) - istemp := strings.HasSuffix(ext, "~") || (ext == ".swp") || (ext == ".swx") || (ext == ".tmp") || strings.HasPrefix(ext, ".goutputstream") || strings.HasSuffix(ext, "jb_old___") || strings.HasSuffix(ext, "jb_bak___") + istemp := strings.HasSuffix(ext, "~") || (ext == ".swp") || (ext == ".swx") || (ext == ".tmp") || strings.HasPrefix(ext, ".goutputstream") || strings.HasSuffix(ext, "jb_old___") || strings.HasSuffix(ext, "jb_bak___") || (ext == ".DS_Store") if istemp { continue }