Skip to content

Commit b3122e1

Browse files
author
MarcoFalke
committed
Merge bitcoin#23543: test: Prevent non-compatible sed binary for scripted-diffs
d8dfc40 script: redirecting stderr to stdout before pipelining into grep (anouar kappitou) 30df5c3 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 bitcoin#19815 ACKs for top commit: shaavan: reACK d8dfc40 theStack: Tested ACK d8dfc40 Tree-SHA512: 4813abb02195e04b8953662e51cba4599789e6185a6d384f56255e2d37c2b16be46c7c8861e44ba1a13d42573a58eb708901472925cb308dba2f602020e9f0f6
2 parents 973c390 + d8dfc40 commit b3122e1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/lint/commit-script-check.sh

+5
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ if test -z "$1"; then
1717
exit 1
1818
fi
1919

20+
if ! sed --help 2>&1 | grep -q 'GNU'; then
21+
echo "Error: the installed sed package is not compatible. Please make sure you have GNU sed installed in your system.";
22+
exit 1;
23+
fi
24+
2025
RET=0
2126
PREV_BRANCH=$(git name-rev --name-only HEAD)
2227
PREV_HEAD=$(git rev-parse HEAD)

0 commit comments

Comments
 (0)