From 3bf4f8db669e1e274ce2633cf84add2938b9914b Mon Sep 17 00:00:00 2001 From: Sjors Provoost Date: Thu, 21 Mar 2024 13:12:19 +0100 Subject: [PATCH] lint: scripted-diff verification also requires GNU grep --- test/lint/commit-script-check.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/lint/commit-script-check.sh b/test/lint/commit-script-check.sh index 55c9528dea8..fe845ed19e4 100755 --- a/test/lint/commit-script-check.sh +++ b/test/lint/commit-script-check.sh @@ -22,6 +22,11 @@ if ! sed --help 2>&1 | grep -q 'GNU'; then exit 1; fi +if ! grep --help 2>&1 | grep -q 'GNU'; then + echo "Error: the installed grep package is not compatible. Please make sure you have GNU grep installed in your system."; + exit 1; +fi + RET=0 PREV_BRANCH=$(git name-rev --name-only HEAD) PREV_HEAD=$(git rev-parse HEAD)