Run terraform_docs only if README.md is present

This commit is contained in:
Anton Babenko 2018-05-16 21:58:40 +02:00
commit 091f8b15d7

View file

@ -27,6 +27,7 @@ for path_uniq in $(echo "${paths[*]}" | tr ' ' '\n' | sort -u); do
pushd "$path_uniq" > /dev/null
if [[ ! -f "$text_file" ]]; then
popd > /dev/null
continue
fi