Pulling Git Repositories.

Hi, Really loving Hazel but having issues with getting a rule running.
I've got the tricky parts sorted but it's a seemingly simple bit that I am having issues with.
I have a directory called Git which contains numerous repositories and subfolders of repositories. (repositories being a folder containing a hidden folder called ".git")
I am looking to go through all of these, run a shell script to check if they are up to date or not and pull from a remote if not.
I am aware that by default hazel doesn't read hidden files/folders (already sorted that with the default write thing).
I have tested the shell script aspect of this and that all works fine.
The thing I can't fathom is the hazel logic to implement checking a folder/sub folders for:
if current folder contains a folder called .git run rules.
Thoughts? Suggestions? All much appreciated
Tim
I've got the tricky parts sorted but it's a seemingly simple bit that I am having issues with.
I have a directory called Git which contains numerous repositories and subfolders of repositories. (repositories being a folder containing a hidden folder called ".git")
I am looking to go through all of these, run a shell script to check if they are up to date or not and pull from a remote if not.
I am aware that by default hazel doesn't read hidden files/folders (already sorted that with the default write thing).
I have tested the shell script aspect of this and that all works fine.
The thing I can't fathom is the hazel logic to implement checking a folder/sub folders for:
if current folder contains a folder called .git run rules.
Thoughts? Suggestions? All much appreciated
Tim