File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22set -eo pipefail
3-
43# globals variables
54SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd -P) "
65readonly SCRIPT_DIR
@@ -233,13 +232,12 @@ function terraform_docs {
233232 have_marker=$( grep -o " $insertion_marker_begin " " $output_file " ) || unset have_marker
234233 [[ ! $have_marker ]] && popd > /dev/null && continue
235234 fi
235+ local config_options=" "
236236 if [[ $had_config_flag == true ]]; then
237- # shellcheck disable=SC2086
238- terraform-docs --output-mode=" $output_mode " --output-file=" $output_file " $tf_docs_formatter --config=" $config_file " $args ./ > /dev/null
239- else
240- # shellcheck disable=SC2086
241- terraform-docs --output-mode=" $output_mode " --output-file=" $output_file " $tf_docs_formatter $config_arg $args ./ > /dev/null
237+ config_options=" --config=$config_file "
242238 fi
239+ # shellcheck disable=SC2086
240+ terraform-docs --output-mode=" $output_mode " --output-file=" $output_file " $tf_docs_formatter " $config_options " $args ./ > /dev/null
243241
244242 popd > /dev/null
245243 done
You can’t perform that action at this time.
0 commit comments