We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2c36c52 + bb5bb39 commit 83b4d1dCopy full SHA for 83b4d1d
hack/verify-toc-vs-template.sh
@@ -78,8 +78,8 @@ result=0
78
kep_readmes=()
79
while IFS= read -r changed_file
80
do
81
- # make sure to ignore the template kep itself, we don't want to self-diff
82
- if [[ "${changed_file}" == "keps"*"README.md" ]] && [[ "${changed_file}" != "${template_readme}" ]]; then
+ # make sure to ignore the template kep itself, we don't want to self-diff. Ignore deleted files.
+ if [[ "${changed_file}" == "keps"*"README.md" ]] && [[ "${changed_file}" != "${template_readme}" ]] && [[ -f "${changed_file}" ]]; then
83
kep_readmes+=("${changed_file}")
84
fi
85
done < <(git diff-tree --no-commit-id --name-only -r "${base}".."${target}")
0 commit comments