Skip to content

Commit 42780f3

Browse files
devinleeeTim Bannister
andauthored
Update scripts/verify-spelling.sh
Co-authored-by: Tim Bannister <[email protected]>
1 parent a78abf5 commit 42780f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/verify-spelling.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ ERROR_LOG="${TMP_DIR}/errors.log"
6868
# this file.
6969
skipping_file="${KUBE_ROOT}/scripts/.spelling_failures"
7070
failing_packages=$(sed "s| | -e |g" "${skipping_file}")
71-
git ls-files | grep content/${LANGUAGE} | grep -v -e "${failing_packages}" | xargs misspell > "${ERROR_LOG}"
71+
git ls-files -z | grep --null-data "^content/${LANGUAGE}" | grep --null-data -v -e "${failing_packages}" | xargs -0 -r misspell > "${ERROR_LOG}"
7272
if [[ -s "${ERROR_LOG}" ]]; then
7373
sed 's/^/error: /' "${ERROR_LOG}" # add 'error' to each line to highlight in e2e status
7474
echo "Found spelling errors!"

0 commit comments

Comments
 (0)