From: Bjørn Erik Pedersen Date: Fri, 6 May 2016 18:30:03 +0000 (+0200) Subject: Ignore Byword temp files X-Git-Tag: v0.16~30 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=b5030782ae5e6cda3aa7a7dd9fb8ffa4f2d16a32;p=brevno-suite%2Fhugo Ignore Byword temp files Fixes #2126 --- diff --git a/commands/hugo.go b/commands/hugo.go index a10ae9c4..bda33e59 100644 --- a/commands/hugo.go +++ b/commands/hugo.go @@ -749,11 +749,11 @@ func NewWatcher(port int) error { filepath.Base(ev.Name) == "4913" || strings.HasPrefix(ext, ".goutputstream") || strings.HasSuffix(ext, "jb_old___") || - strings.HasSuffix(ext, "jb_bak___") + strings.HasSuffix(ext, "jb_bak___") || + strings.HasPrefix(ext, ".sb-") if istemp { continue } - // Sometimes during rm -rf operations a '"": REMOVE' is triggered. Just ignore these if ev.Name == "" { continue