fix: Pass command line arguments to tflint init (#487)

This commit is contained in:
Jérémy Marmol 2023-02-03 16:44:24 +01:00 committed by GitHub
commit 29a8c00251
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"
} || {