fix: command not found (#251)

This commit is contained in:
Maksym Vlasov 2021-10-15 23:09:13 +03:00 committed by GitHub
commit e33c654a40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -65,7 +65,7 @@ tflint_() {
# Print checked PATH **only** if TFLint have any messages
# shellcheck disable=SC2091 # Suppress error output
$(tflint "${ARGS[@]}" 2>&1) || {
$(tflint "${ARGS[@]}" 2>&1) 2> /dev/null || {
echo >&2 -e "\033[1;31m\nERROR in $path_uniq/:\033[0m"
tflint "${ARGS[@]}"
}