Skip to content

Commit 62f4b02

Browse files
committed
Merge branch 'main' of github.com:swiftslee/k8s-website
2 parents cd3ee79 + 1522ac8 commit 62f4b02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/verify-spelling.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ ERROR_LOG="${TMP_DIR}/errors.log"
6767
# this file.
6868
skipping_file="${KUBE_ROOT}/scripts/.spelling_failures"
6969
failing_packages=$(sed "s| | -e |g" "${skipping_file}")
70-
git ls-files | grep content/${LANGUAGE} | grep -v -e "${failing_packages}" | xargs misspell > "${ERROR_LOG}"
70+
git ls-files -z | grep --null-data "^content/${LANGUAGE}" | grep --null-data -v -e "${failing_packages}" | xargs -0 -r misspell > "${ERROR_LOG}"
7171
if [[ -s "${ERROR_LOG}" ]]; then
7272
sed 's/^/error: /' "${ERROR_LOG}" # add 'error' to each line to highlight in e2e status
73-
echo "Found spelling errors!"
73+
echo "Found spelling errors!" >&2
7474
RES=1
7575
fi
7676
exit "${RES}"

0 commit comments

Comments
 (0)