mirror of
https://github.com/tofuutils/pre-commit-opentofu.git
synced 2025-10-15 17:38:54 +02:00
Run terraform_docs only if README.md is present
This commit is contained in:
parent
8e03aec3d5
commit
091f8b15d7
1 changed files with 1 additions and 0 deletions
|
|
@ -27,6 +27,7 @@ for path_uniq in $(echo "${paths[*]}" | tr ' ' '\n' | sort -u); do
|
||||||
pushd "$path_uniq" > /dev/null
|
pushd "$path_uniq" > /dev/null
|
||||||
|
|
||||||
if [[ ! -f "$text_file" ]]; then
|
if [[ ! -f "$text_file" ]]; then
|
||||||
|
popd > /dev/null
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue