Skip to content

Commit 390a264

Browse files
authored
fix: execute tflint once in no errors (antonbabenko#250)
1 parent 762f7b2 commit 390a264

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

terraform_tflint.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,10 @@ tflint_() {
6565

6666
# Print checked PATH **only** if TFLint have any messages
6767
# shellcheck disable=SC2091 # Suppress error output
68-
$(tflint "${ARGS[@]}" 2>&1) ||
69-
echo >&2 -e "\033[1;31m\nERROR in $path_uniq/:\033[0m" && tflint "${ARGS[@]}"
68+
$(tflint "${ARGS[@]}" 2>&1) || {
69+
echo >&2 -e "\033[1;31m\nERROR in $path_uniq/:\033[0m"
70+
tflint "${ARGS[@]}"
71+
}
7072

7173
popd > /dev/null
7274
done

0 commit comments

Comments
 (0)