URL: https://github.com/SSSD/sssd/pull/83 Title: #83: TESTS: Check new line at end of file
spbnick commented: """ Ah, I see. Then you can put your patterns into a variable and check against them in the loop, similarly to the way it's done above in the script. You can use extended globs (with `shopt -s extglob`), or regexes as before.
For globs the test will be if `[[ "$file" != $EXCLUDE_GLOB ]]`, and for regexes it will be `! [[ "$file" ~= $EXCLUDE_REGEX ]]`.
"""
See the full comment at https://github.com/SSSD/sssd/pull/83#issuecomment-261934231