From 76969eab80997f4dc0d4eb0cce7f5d497a5826ff Mon Sep 17 00:00:00 2001 From: "Thierno IB. BARRY" Date: Mon, 13 Jan 2020 11:40:35 +0100 Subject: [PATCH] move terraform-docs args after markdown command (#83) --- terraform_docs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/terraform_docs.sh b/terraform_docs.sh index 958272eee..490f157c8 100755 --- a/terraform_docs.sh +++ b/terraform_docs.sh @@ -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