diff --git a/bin/tools/pre-commit-hook b/bin/tools/pre-commit-hook index d44edba275..44518f0837 100755 --- a/bin/tools/pre-commit-hook +++ b/bin/tools/pre-commit-hook @@ -148,7 +148,7 @@ checkIllegalCode() do case "$f" in # exclude potential makefiles - (wmake/[Mm]akefile* | wmake/rules/*) + (*[Mm]akefile* | wmake/rules/*) ;; (*) # parse line numbers from grep output: diff --git a/bin/tools/pre-receive-hook b/bin/tools/pre-receive-hook index cf4dcb42be..641185cf13 100755 --- a/bin/tools/pre-receive-hook +++ b/bin/tools/pre-receive-hook @@ -111,7 +111,7 @@ checkIllegalCode() do case "$f" in # exclude potential makefiles - (wmake/[Mm]akefile* | wmake/rules/*) + (*[Mm]akefile* | wmake/rules/*) ;; (*) # parse line numbers from grep output: