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