From 5763900b5f1da672a22d67d7945570547394f8b5 Mon Sep 17 00:00:00 2001
From: Oliver Davies <oliver@oliverdavies.uk>
Date: Tue, 3 Oct 2023 18:14:37 +0100
Subject: [PATCH] fix(scripts): vendor files causing reloads

Ignore the `vendor` directory and some others as it was causing the
script to reload when it wasn't expected.

Whilst I'd expect it to be ignored if I specified the path to look at as
something like `web/modules/custom`, but it still seems to trigger the
command and it seems a lot more stable since adding this.
---
 bin/watch-changes | 1 +
 1 file changed, 1 insertion(+)

diff --git a/bin/watch-changes b/bin/watch-changes
index 26396e26..35f87b97 100755
--- a/bin/watch-changes
+++ b/bin/watch-changes
@@ -11,6 +11,7 @@ while true; do
   inotifywait \
     --event modify \
     --event move_self \
+    --exclude ".git|simpletest|vendor" \
     --recursive \
     $1 && $2
 done