Skip to content

Commit 29a8c00

Browse files
authored
fix: Pass command line arguments to tflint init (antonbabenko#487)
1 parent d20d399 commit 29a8c00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hooks/terraform_tflint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function main {
2222
# Run `tflint --init` for check that plugins installed.
2323
# It should run once on whole repo.
2424
{
25-
TFLINT_INIT=$(tflint --init 2>&1) 2> /dev/null &&
25+
TFLINT_INIT=$(tflint --init "${ARGS[@]}" 2>&1) 2> /dev/null &&
2626
common::colorify "green" "Command 'tflint --init' successfully done:" &&
2727
echo -e "${TFLINT_INIT}\n\n\n"
2828
} || {

0 commit comments

Comments
 (0)