diff --git a/hooks/terraform_tflint.sh b/hooks/terraform_tflint.sh index d3e4646..d488cb7 100755 --- a/hooks/terraform_tflint.sh +++ b/hooks/terraform_tflint.sh @@ -22,7 +22,7 @@ function main { # Run `tflint --init` for check that plugins installed. # It should run once on whole repo. { - TFLINT_INIT=$(tflint --init 2>&1) 2> /dev/null && + TFLINT_INIT=$(tflint --init "${ARGS[@]}" 2>&1) 2> /dev/null && common::colorify "green" "Command 'tflint --init' successfully done:" && echo -e "${TFLINT_INIT}\n\n\n" } || {