Merge pull request #26528 from johscheuer/hack-update-api-docs

Automatic merge from submit-queue

Fixes #26526 - hack/update-api-reference-docs.sh

I opened a Pull request to fix this issue https://github.com/kubernetes/kubernetes/issues/26526

The problem is that the update script ignores white spaces but the verify script doesn't which leads to a strange behaviour -> you use the update script but the verify script tells you that the api docs are not up to date.
pull/6/head
k8s-merge-robot 2016-06-02 17:04:10 -07:00
commit 0a2a7a9d6a
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ while read file; do
# By now, the contents should be normalized and stripped of any
# auto-managed content.
if diff -Bw >/dev/null <(echo "${original}") <(echo "${generated}"); then
if diff -B >/dev/null <(echo "${original}") <(echo "${generated}"); then
# actual contents same, overwrite generated with original.
cp "${OUTPUT}/${file}" "${OUTPUT_TMP}/${file}"
fi