summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x.hooks/pre-commit.d/check_files2
1 files changed, 1 insertions, 1 deletions
diff --git a/.hooks/pre-commit.d/check_files b/.hooks/pre-commit.d/check_files
index 01eae4f2b3d8..e9891f3cc827 100755
--- a/.hooks/pre-commit.d/check_files
+++ b/.hooks/pre-commit.d/check_files
@@ -17,7 +17,7 @@ if [ $? -eq 0 ] ; then
category=$(echo "${newish_file}" | awk -F '/' '{print $1}')
port=$(echo "${newish_file}" | awk -F '/' '{print $2}')
file=$(echo "${newish_file}" | awk -F '/' '{print $3}')
- valid=$(echo "${file}" | grep -q '^((Makefile|distinfo|pkg-)(.*))|(.*\.mk)$')
+ valid=$(echo "${file}" | grep -Eq '^((Makefile|distinfo|pkg-)(.*))|(.*\.mk)$')
if [ $? -ne 0 ] ; then
echo "[pre-commit] ERROR: invalid file '${file}' in '${category}/${port}'"
status=1