Skip to content

Commit 3bf4f8d

Browse files
committed
lint: scripted-diff verification also requires GNU grep
1 parent 71b6319 commit 3bf4f8d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/lint/commit-script-check.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ if ! sed --help 2>&1 | grep -q 'GNU'; then
2222
exit 1;
2323
fi
2424

25+
if ! grep --help 2>&1 | grep -q 'GNU'; then
26+
echo "Error: the installed grep package is not compatible. Please make sure you have GNU grep installed in your system.";
27+
exit 1;
28+
fi
29+
2530
RET=0
2631
PREV_BRANCH=$(git name-rev --name-only HEAD)
2732
PREV_HEAD=$(git rev-parse HEAD)

0 commit comments

Comments
 (0)