Skip to content

Commit a6bf17a

Browse files
committed
fix(terraform-docs): rename variable
1 parent ed9db97 commit a6bf17a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hooks/terraform_docs.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)