Skip to content

Commit

Permalink
Pass on directories that don't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Gilmer committed Nov 7, 2019
1 parent 6068abd commit e5a735a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pre-commit-gen-docs
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,7 @@ function update_index {
}

for dir in docs/adr docs/rfc docs/runbook; do
update_index "${dir}"
if [[ -d "${dir}" ]]; then
update_index "${dir}"
fi
done

0 comments on commit e5a735a

Please sign in to comment.