Don't show shyaml errors to the console

This commit is contained in:
Eric Nemchik 2020-06-30 10:30:12 -05:00
parent 65349e258d
commit 66ea3e05d8

View file

@ -491,7 +491,7 @@ DetectCloudFormationFile()
################################ ################################
# See if it contains resources # # 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 # Found it
return 0 return 0
fi fi