From 11d5e0f2d37fd1971c5f8dbe19b062dea4863c02 Mon Sep 17 00:00:00 2001 From: facundoolano Date: Thu, 15 Feb 2024 17:10:21 -0300 Subject: [PATCH] fix chmod condition --- commands/serve.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/serve.go b/commands/serve.go index fb43edf..f52ddcb 100644 --- a/commands/serve.go +++ b/commands/serve.go @@ -80,7 +80,7 @@ func setupWatcher() (*fsnotify.Watcher, error) { } // chmod events are noisy, ignore them - if event.Has(fsnotify.Chmod) { + if !event.Has(fsnotify.Chmod) { fmt.Printf("\nFile %s changed, triggering rebuild.\n", event.Name) // since new nested directories could be triggering this change, and we need to watch those too