diff --git a/terraform_docs.sh b/terraform_docs.sh index 4d609b6f9..fba5730fd 100755 --- a/terraform_docs.sh +++ b/terraform_docs.sh @@ -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