diff --git a/terraform_docs.sh b/terraform_docs.sh index 71d20ae1e..311ae2025 100755 --- a/terraform_docs.sh +++ b/terraform_docs.sh @@ -62,7 +62,7 @@ terraform_docs() { continue fi - terraform-docs md "$args" ./ > "$tmp_file" + terraform-docs "$args" md ./ > "$tmp_file" # Replace content between markers with the placeholder - https://stackoverflow.com/questions/1212799/how-do-i-extract-lines-between-two-line-delimiters-in-perl#1212834 perl -i -ne 'if (/BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK/../END OF PRE-COMMIT-TERRAFORM DOCS HOOK/) { print $_ if /BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK/; print "I_WANT_TO_BE_REPLACED\n$_" if /END OF PRE-COMMIT-TERRAFORM DOCS HOOK/;} else { print $_ }' "$text_file"