diff options
author | Tobias C. Berner <tcberner@FreeBSD.org> | 2022-11-16 06:16:46 +0100 |
---|---|---|
committer | Tobias C. Berner <tcberner@FreeBSD.org> | 2022-11-16 06:18:26 +0100 |
commit | 30aaa5ae3f985c3f28a8fbec8c5c9e078eb06a96 (patch) | |
tree | bff3090f2600baff18d3a233f29e44b9900b5fa8 /.hooks | |
parent | net-p2p/xbt: new BitTorrent tracker port had been added (+) (diff) |
framework: fix grep call in check_files hook
Reported by: dch
Diffstat (limited to '.hooks')
-rwxr-xr-x | .hooks/pre-commit.d/check_files | 2 |
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 |