Update scripts/verify-spelling.sh

Co-authored-by: Tim Bannister <tim@scalefactory.com>
pull/28954/head^2
Swift 2021-12-24 15:28:36 +08:00 committed by GitHub
parent 42780f388d
commit 1522ac81ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ failing_packages=$(sed "s| | -e |g" "${skipping_file}")
git ls-files -z | grep --null-data "^content/${LANGUAGE}" | grep --null-data -v -e "${failing_packages}" | xargs -0 -r misspell > "${ERROR_LOG}"
if [[ -s "${ERROR_LOG}" ]]; then
sed 's/^/error: /' "${ERROR_LOG}" # add 'error' to each line to highlight in e2e status
echo "Found spelling errors!"
echo "Found spelling errors!" >&2
RES=1
fi
exit "${RES}"