Skip to content

Commit a08804a

Browse files
committed
Adds tflint --init invoke
1 parent f904e1f commit a08804a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

entrypoint.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ for PREFIX in "${ARRAY[@]}"; do
1919
if [[ "${INPUT_RUN_INIT}" == "true" ]]; then
2020
terraform init
2121
fi
22-
tflint -c "${WORK_DIR}/${INPUT_TFLINT_CONFIG}" || RET_CODE=1
22+
tflint --init && tflint -c "${WORK_DIR}/${INPUT_TFLINT_CONFIG}" || RET_CODE=1
2323
else
2424
if [[ "${INPUT_RUN_INIT}" == "true" ]]; then
2525
terraform init
2626
fi
27-
tflint "${INPUT_TFLINT_PARAMS}" || RET_CODE=1
27+
tflint --init && tflint "${INPUT_TFLINT_PARAMS}" || RET_CODE=1
2828
fi
2929
cd "${WORK_DIR}" || RET_CODE=1
3030
done

0 commit comments

Comments
 (0)