Skip to content

Commit c575780

Browse files
authored
Simplify error output redirect in lint.sh
To avoid "Syntax error: redirection unexpected"
1 parent 1d2a32c commit c575780

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/lint.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ make build ALLSPHINXOPTS="$opts"
2929
sphinx-intl update -d locale -p build/gettext -l ${PYDOC_LANGUAGE} > /dev/null
3030

3131
cd locale/${PYDOC_LANGUAGE}/LC_MESSAGES
32-
sphinx-lint 2> >(tee -a $(realpath "$rootdir/logs/sphinxlint.txt") >&2)
32+
sphinx-lint 2> $(realpath "$rootdir/logs/sphinxlint.txt")
3333

3434
# Undo changes to undo literal blocks disabling
3535
git checkout .
@@ -41,6 +41,7 @@ if [ ! -s logs/sphinxlint.txt ]; then
4141
# OK, it is empty. Remove it.
4242
rm logs/sphinxlint.txt
4343
else
44-
# has contents, exit with error status (to trigger notification in CI)
44+
# print contents and exit with error status (to trigger notification in CI)
45+
cat logs/sphinxlint.txt
4546
exit 1
4647
fi

0 commit comments

Comments
 (0)