mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-10 14:08:40 +01:00
Merge bitcoin/bitcoin#29689: lint: scripted-diff verification also requires GNU grep
3bf4f8db66lint: scripted-diff verification also requires GNU grep (Sjors Provoost) Pull request description: I noticed while trying to verify all historical `scripted-diff:` commits on macOS that some scripts require GNU sed. For example0d6d2b650duses `git grep --perl-regexp`. ACKs for top commit: hernanmarino: cr ACK3bf4f8db66maflcko: utACK3bf4f8db66achow101: ACK3bf4f8db66alfonsoromanz: Tested ACK3bf4f8db66kristapsk: cr utACK3bf4f8db66Tree-SHA512: 09a060ab1bafad03df60d0f20c3dd1451850868dbd66ea38b18178b6230c1f06cf48622db82d9c51422d5689962ee0cd7aae0a31f84bd6d878215e6d73c1d47e
This commit is contained in:
@@ -22,6 +22,11 @@ if ! sed --help 2>&1 | grep -q 'GNU'; then
|
|||||||
exit 1;
|
exit 1;
|
||||||
fi
|
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
|
RET=0
|
||||||
PREV_BRANCH=$(git name-rev --name-only HEAD)
|
PREV_BRANCH=$(git name-rev --name-only HEAD)
|
||||||
PREV_HEAD=$(git rev-parse HEAD)
|
PREV_HEAD=$(git rev-parse HEAD)
|
||||||
|
|||||||
Reference in New Issue
Block a user