mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 15:58:37 +00:00
Ignore whitespace when diffing generated docs
This commit is contained in:
parent
542ac8db69
commit
261d2ce423
@ -159,8 +159,9 @@ kube::util::gen-doc() {
|
||||
generated=$(echo "${generated}" | grep -v "^${skipprefix}" || :)
|
||||
fi
|
||||
# By now, the contents should be normalized and stripped of any
|
||||
# auto-managed content.
|
||||
if [[ "${original}" == "${generated}" ]]; then
|
||||
# auto-managed content. We also ignore whitespace here because of
|
||||
# markdown strictness fixups later in the pipeline.
|
||||
if diff -Bw <(echo "${original}") <(echo "${generated}") > /dev/null; then
|
||||
# actual contents same, overwrite generated with original.
|
||||
mv "${dest}/${file}" "${tmpdir}/${file}"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user