Commit 785556e7 authored by Chao Xu's avatar Chao Xu

ignore trailing whitespace and blankline when verify api reference docs

parent 1752cf22
...@@ -35,7 +35,7 @@ TMP_ROOT="${KUBE_ROOT}/_tmp" ...@@ -35,7 +35,7 @@ TMP_ROOT="${KUBE_ROOT}/_tmp"
echo "diffing ${API_REFERENCE_DOCS_ROOT} against freshly generated docs" echo "diffing ${API_REFERENCE_DOCS_ROOT} against freshly generated docs"
ret=0 ret=0
diff -Naupr -I 'Last update' --exclude=*.md "${API_REFERENCE_DOCS_ROOT}" "${OUTPUT_DIR}" || ret=$? diff -NauprBZ -I 'Last update' --exclude=*.md "${API_REFERENCE_DOCS_ROOT}" "${OUTPUT_DIR}" || ret=$?
rm -rf "${TMP_ROOT}" rm -rf "${TMP_ROOT}"
if [[ $ret -eq 0 ]] if [[ $ret -eq 0 ]]
then then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment