diff --git a/.gitea/workflows/linter_char_scripts.yaml b/.gitea/workflows/linter_char_scripts.yaml index abf6d32..8ac4627 100644 --- a/.gitea/workflows/linter_char_scripts.yaml +++ b/.gitea/workflows/linter_char_scripts.yaml @@ -130,12 +130,14 @@ jobs: # - All files whose first line begins with "#!" (shebang) # ------------------------------- mapfile -t files_to_check < <( - find . -type f \( \ - -iname '*.sh' -o \ - -iname '*.zsh' -o \ - -iname '*.chroot' -o \ - -exec grep -Iq '^#!' {} \; \ - \) -print + find . \ + -path './.git' -prune -o \ + -type f \( \ + -iname '*.sh' -o \ + -iname '*.zsh' -o \ + -iname '*.chroot' -o \ + -exec grep -Iq '^#!' {} \; \ + \) -print ) # -------------------------------