diff --git a/hooks/terraform_validate.sh b/hooks/terraform_validate.sh index 122eb69f2..78a0da8f8 100755 --- a/hooks/terraform_validate.sh +++ b/hooks/terraform_validate.sh @@ -36,6 +36,7 @@ function main { # global variables with appropriate values # Globals (init and populate): # ARGS (array) arguments that configure wrapped tool behavior +# HOOK_CONFIG (array) arguments that configure hook behavior # INIT_ARGS (array) arguments to `terraform init` command # ENVS (array) environment variables that will be used with # `terraform` commands @@ -56,6 +57,11 @@ function parse_cmdline_ { ARGS+=("$1") shift ;; + -h | --hook-config) + shift + HOOK_CONFIG+=("$1;") + shift + ;; -i | --init-args) shift INIT_ARGS+=("$1")