mirror of
https://github.com/tofuutils/pre-commit-opentofu.git
synced 2025-10-15 17:38:54 +02:00
move terraform-docs args after markdown command (#83)
This commit is contained in:
parent
26ab873aa6
commit
76969eab80
1 changed files with 2 additions and 2 deletions
|
|
@ -76,7 +76,7 @@ terraform_docs() {
|
|||
fi
|
||||
|
||||
if [[ "$terraform_docs_awk_file" == "0" ]]; then
|
||||
terraform-docs $args md ./ > "$tmp_file"
|
||||
terraform-docs md $args ./ > "$tmp_file"
|
||||
else
|
||||
# Can't append extension for mktemp, so renaming instead
|
||||
tmp_file_docs=$(mktemp "${TMPDIR:-/tmp}/terraform-docs-XXXXXXXXXX")
|
||||
|
|
@ -84,7 +84,7 @@ terraform_docs() {
|
|||
tmp_file_docs_tf="$tmp_file_docs.tf"
|
||||
|
||||
awk -f "$terraform_docs_awk_file" ./*.tf > "$tmp_file_docs_tf"
|
||||
terraform-docs $args md "$tmp_file_docs_tf" > "$tmp_file"
|
||||
terraform-docs md $args "$tmp_file_docs_tf" > "$tmp_file"
|
||||
rm -f "$tmp_file_docs_tf"
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue