We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
shellcheck
1 parent b0573e7 commit 1a2cf36Copy full SHA for 1a2cf36
hooks/terraform_docs.sh
@@ -241,6 +241,8 @@ function terraform_docs {
241
[[ ! $have_marker ]] && popd > /dev/null && continue
242
fi
243
244
+ # shellcheck disable=SC2206
245
+ # Need to pass $tf_docs_formatter and $args as separate arguments, not as single string
246
local tfdocs_cmd=(
247
terraform-docs
248
--output-mode="$output_mode"
@@ -249,9 +251,9 @@ function terraform_docs {
249
251
$args
250
252
)
253
if [[ $have_config_flag == true ]]; then
- ${tfdocs_cmd[@]} "--config=$config_file" ./ > /dev/null
254
+ "${tfdocs_cmd[@]}" "--config=$config_file" ./ > /dev/null
255
else
- ${tfdocs_cmd[@]} ./ > /dev/null
256
+ "${tfdocs_cmd[@]}" ./ > /dev/null
257
258
259
popd > /dev/null
0 commit comments