Skip to content

Commit d8dfc40

Browse files
script: redirecting stderr to stdout before pipelining into grep
Co-authored-by: Sebastian Falbesoner <[email protected]>
1 parent 30df5c3 commit d8dfc40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/lint/commit-script-check.sh

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

20-
if ! sed --help | grep -q 'GNU'; then
20+
if ! sed --help 2>&1 | grep -q 'GNU'; then
2121
echo "Error: the installed sed package is not compatible. Please make sure you have GNU sed installed in your system.";
2222
exit 1;
2323
fi

0 commit comments

Comments
 (0)