File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ function terraform_docs {
8787 local add_to_existing=false
8888 local create_if_not_exist=false
8989 local use_standard_markers=true
90- local had_config_flag =false
90+ local have_config_flag =false
9191
9292 IFS=" ;" read -r -a configs <<< " $hook_config"
9393
@@ -142,7 +142,7 @@ function terraform_docs {
142142 local tf_docs_formatter=" md"
143143
144144 else
145- had_config_flag =true
145+ have_config_flag =true
146146 local config_file=${args#* --config}
147147 config_file=${config_file#* =}
148148 # If there are more parameters after config path, trim until --
@@ -238,7 +238,7 @@ function terraform_docs {
238238 [[ ! $have_marker ]] && popd > /dev/null && continue
239239 fi
240240 local config_options=" "
241- if [[ $had_config_flag == true ]]; then
241+ if [[ $have_config_flag == true ]]; then
242242 config_options=" --config=$config_file "
243243 fi
244244 # shellcheck disable=SC2086
You can’t perform that action at this time.
0 commit comments