Currently inotifywait
is watching git server folders. End it emits only when specific file modified. The problem is, when changes are pushed to git server, inotifywait
triggers few times. I don’t know why.
So how can I do the next: prevent inotifywait
from making duplicates?
I was thinking about the algorithm: when triggered first time->sleep script so it won’t scan next changes for 5 seconds->resume script. But it sounds idiotic... Can you help me achieving this? Thanks!!