diff --git a/bin/tools/pre-commit-hook b/bin/tools/pre-commit-hook index d44edba275e1336e5aeeeeaabee4bb930e4f46b8..44518f083710a51d95c17a1c2a3fefd6efadfd12 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 cf4dcb42be6bc0f55b9573cc233b492cfa179499..641185cf131ae7ab70e852479c05354173b83f93 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: