diff --git a/watcher/watcher.go b/watcher/watcher.go index 74d9d39..b5b73a2 100644 --- a/watcher/watcher.go +++ b/watcher/watcher.go @@ -78,6 +78,9 @@ func (w *FSEventsWatcher) Run(ctx context.Context) error { scanner := bufio.NewScanner(stdout) for scanner.Scan() { line := strings.Split(scanner.Text(), " ") + if len(line) < 2 { + continue + } relFilename, err := filepath.Rel(w.directory, line[0]) if err != nil {