We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c325a1d commit dbc19caCopy full SHA for dbc19ca
modules/trailing_whitespaces.sh
@@ -4,7 +4,7 @@ _puppet_git_hooks_check_trailing_whitespaces () {
4
local filteredfiles=
5
local say_checkname='trailing whitespaces'
6
7
- if filteredfiles=$(echo $@ | tr ' ' '\n' | grep -vE 'README.md|^files\/'); then
+ if filteredfiles=$(echo $@ | tr ' ' '\n' | grep -vE '\.md$|^files\/'); then
8
_puppet_git_hooks_say "checking" "$say_checkname"
9
if type grep > /dev/null 2>&1; then
10
if ! grep -qIE ' $' ${filteredfiles}; then
0 commit comments