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.
1 parent a78abf5 commit 42780f3Copy full SHA for 42780f3
scripts/verify-spelling.sh
@@ -68,7 +68,7 @@ ERROR_LOG="${TMP_DIR}/errors.log"
68
# this file.
69
skipping_file="${KUBE_ROOT}/scripts/.spelling_failures"
70
failing_packages=$(sed "s| | -e |g" "${skipping_file}")
71
-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}"
72
if [[ -s "${ERROR_LOG}" ]]; then
73
sed 's/^/error: /' "${ERROR_LOG}" # add 'error' to each line to highlight in e2e status
74
echo "Found spelling errors!"
0 commit comments