misc: fix spurious errors with non-en-frontpage-news (#5265)
continuous-integration/drone/push Build is passing

Before if none of the files submitted to the check contained the tag, and there were hence no matches the script would fail incorrectly.

This is no longer the case

Co-authored-by: Darragh Elliott <me@delliott.net>
Reviewed-on: #5265
Co-authored-by: delliott <delliott@fsfe.org>
Co-committed-by: delliott <delliott@fsfe.org>
This commit was merged in pull request #5265.
This commit is contained in:
2025-08-29 04:37:31 +00:00
committed by tobiasd
parent 7d120db18d
commit 7480121f3a
+1 -1
View File
@@ -7,7 +7,7 @@ set -euo pipefail
# select all items which have the front-page tag
exit=0
matched_files="$(grep "<tag.*front-page" --files-with-matches "$@")"
matched_files="$(grep "<tag.*front-page" --files-with-matches "$@" || true)"
for file in $matched_files; do
base="${file%.*}" # file.xx