From 9c7777c798638cb82c4bb14a1185267f7642ff2a Mon Sep 17 00:00:00 2001 From: MaxymVlasov Date: Fri, 15 Oct 2021 22:35:46 +0300 Subject: [PATCH] fix: `line 68: WARNING:: command not found` --- terraform_tflint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terraform_tflint.sh b/terraform_tflint.sh index fbb7bb6a8..52c57566e 100755 --- a/terraform_tflint.sh +++ b/terraform_tflint.sh @@ -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[@]}" }