Skip to content

Commit

Permalink
Use correct form of quoted args
Browse files Browse the repository at this point in the history
  • Loading branch information
robinbowes committed Sep 9, 2020
1 parent c862c4b commit 3a68667
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions terraform_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,7 @@ terraform_docs() {
fi

if [[ "$terraform_docs_awk_file" == "0" ]]; then
# shellcheck disable=SC2086
terraform-docs md "${ARGS[*]}" ./ > "$tmp_file"
terraform-docs md "${ARGS[@]}" ./ > "$tmp_file"
else
# Can't append extension for mktemp, so renaming instead
local tmp_file_docs
Expand All @@ -128,8 +127,7 @@ terraform_docs() {
mv "$tmp_file_docs" "$tmp_file_docs_tf"

awk -f "$terraform_docs_awk_file" ./*.tf > "$tmp_file_docs_tf"
# shellcheck disable=SC2086
terraform-docs md "${ARGS[*]}" "$tmp_file_docs_tf" > "$tmp_file"
terraform-docs md "${ARGS[@]}" "$tmp_file_docs_tf" > "$tmp_file"
rm -f "$tmp_file_docs_tf"
fi

Expand Down

0 comments on commit 3a68667

Please sign in to comment.