fix chmod condition

This commit is contained in:
facundoolano 2024-02-15 17:10:21 -03:00
parent 01d690b31d
commit 11d5e0f2d3

View file

@ -80,7 +80,7 @@ func setupWatcher() (*fsnotify.Watcher, error) {
} }
// chmod events are noisy, ignore them // 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) 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 // since new nested directories could be triggering this change, and we need to watch those too