File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22set -eo pipefail
3+
34# globals variables
45SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd -P) "
56readonly SCRIPT_DIR
@@ -237,10 +238,8 @@ function terraform_docs {
237238 have_marker=$( grep -o " $insertion_marker_begin " " $output_file " ) || unset have_marker
238239 [[ ! $have_marker ]] && popd > /dev/null && continue
239240 fi
240- local config_options=" "
241- if [[ $have_config_flag == true ]]; then
242- config_options=" --config=$config_file "
243- fi
241+ local config_options
242+ [[ $have_config_flag == true ]] && config_options=" --config=$config_file "
244243 # shellcheck disable=SC2086
245244 terraform-docs --output-mode=" $output_mode " --output-file=" $output_file " $tf_docs_formatter " $config_options " $args ./ > /dev/null
246245
You can’t perform that action at this time.
0 commit comments