We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cd3ee79 + 1522ac8 commit 62f4b02Copy full SHA for 62f4b02
scripts/verify-spelling.sh
@@ -67,10 +67,10 @@ ERROR_LOG="${TMP_DIR}/errors.log"
67
# this file.
68
skipping_file="${KUBE_ROOT}/scripts/.spelling_failures"
69
failing_packages=$(sed "s| | -e |g" "${skipping_file}")
70
-git ls-files | grep content/${LANGUAGE} | grep -v -e "${failing_packages}" | xargs misspell > "${ERROR_LOG}"
+git ls-files -z | grep --null-data "^content/${LANGUAGE}" | grep --null-data -v -e "${failing_packages}" | xargs -0 -r misspell > "${ERROR_LOG}"
71
if [[ -s "${ERROR_LOG}" ]]; then
72
sed 's/^/error: /' "${ERROR_LOG}" # add 'error' to each line to highlight in e2e status
73
- echo "Found spelling errors!"
+ echo "Found spelling errors!" >&2
74
RES=1
75
fi
76
exit "${RES}"
0 commit comments