Merge bitcoin/bitcoin#23543: test: Prevent non-compatible sed binary for scripted-diffs

d8dfc403f7 script: redirecting stderr to stdout before pipelining into grep (anouar kappitou)
30df5c3dd4 script: preventing non-compatible sed binary. (anouar kappitou)

Pull request description:

  This Pull request improve scripted diff by checking for non-compatible sed binary. Fixes #19815

ACKs for top commit:
  shaavan:
    reACK d8dfc403f7
  theStack:
    Tested ACK d8dfc403f7

Tree-SHA512: 4813abb02195e04b8953662e51cba4599789e6185a6d384f56255e2d37c2b16be46c7c8861e44ba1a13d42573a58eb708901472925cb308dba2f602020e9f0f6
This commit is contained in:
MarcoFalke 2022-01-24 12:22:04 +01:00
commit b3122e167a
No known key found for this signature in database
GPG Key ID: CE2B75697E69A548

View File

@ -17,6 +17,11 @@ if test -z "$1"; then
exit 1
fi
if ! sed --help 2>&1 | grep -q 'GNU'; then
echo "Error: the installed sed package is not compatible. Please make sure you have GNU sed installed in your system.";
exit 1;
fi
RET=0
PREV_BRANCH=$(git name-rev --name-only HEAD)
PREV_HEAD=$(git rev-parse HEAD)