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