mirror of
https://github.com/tofuutils/pre-commit-opentofu.git
synced 2025-10-15 17:38:54 +02:00
fix: execute tflint once in no errors (#250)
This commit is contained in:
parent
762f7b2525
commit
390a2645f2
1 changed files with 4 additions and 2 deletions
|
|
@ -65,8 +65,10 @@ tflint_() {
|
||||||
|
|
||||||
# Print checked PATH **only** if TFLint have any messages
|
# Print checked PATH **only** if TFLint have any messages
|
||||||
# shellcheck disable=SC2091 # Suppress error output
|
# shellcheck disable=SC2091 # Suppress error output
|
||||||
$(tflint "${ARGS[@]}" 2>&1) ||
|
$(tflint "${ARGS[@]}" 2>&1) || {
|
||||||
echo >&2 -e "\033[1;31m\nERROR in $path_uniq/:\033[0m" && tflint "${ARGS[@]}"
|
echo >&2 -e "\033[1;31m\nERROR in $path_uniq/:\033[0m"
|
||||||
|
tflint "${ARGS[@]}"
|
||||||
|
}
|
||||||
|
|
||||||
popd > /dev/null
|
popd > /dev/null
|
||||||
done
|
done
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue