From 29a8c00251e16941059df0f460b1e55890d4d7b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Marmol?= Date: Fri, 3 Feb 2023 16:44:24 +0100 Subject: [PATCH] fix: Pass command line arguments to tflint init (#487) --- hooks/terraform_tflint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" } || {