Skip to content

Commit

Permalink
fix: Pass command line arguments to tflint init (#487)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmapro committed Feb 3, 2023
1 parent d20d399 commit 29a8c00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/terraform_tflint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
} || {
Expand Down

0 comments on commit 29a8c00

Please sign in to comment.