From 66ea3e05d85c6b52392d0f347ad1e0959bef7837 Mon Sep 17 00:00:00 2001 From: Eric Nemchik Date: Tue, 30 Jun 2020 10:30:12 -0500 Subject: [PATCH] Don't show shyaml errors to the console --- lib/linter.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/linter.sh b/lib/linter.sh index e4d64c3c..83dbc96b 100755 --- a/lib/linter.sh +++ b/lib/linter.sh @@ -491,7 +491,7 @@ DetectCloudFormationFile() ################################ # See if it contains resources # ################################ - if shyaml values-0 Resources | grep -q -E "Type: (AWS|Alexa|Custom)" < "$FILE"; then + if shyaml values-0 Resources 2> /dev/null | grep -q -E "Type: (AWS|Alexa|Custom)" < "$FILE"; then # Found it return 0 fi