Skip to content

Commit 8be47db

Browse files
committed
Ignore WRITE events on linux
1 parent 21cb35e commit 8be47db

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/watcher.go

+4
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,10 @@ func (w *Watcher) Start() {
135135
w.log("CHMOD change detected, skipping")
136136
continue
137137
}
138+
if event.Op&fsnotify.Write == fsnotify.Write {
139+
w.log("WRITE event detected, skipping")
140+
continue
141+
}
138142

139143
if time.Since(w.lastCmdStart) < time.Duration(w.config.Delay)*time.Millisecond {
140144
w.log("Last command started less than the configured delay, skipping", "delay", w.config.Delay)

0 commit comments

Comments
 (0)