Merge pull request #328 from github/FixError

Don't show shyaml errors to the console
This commit is contained in:
Lukas Gravley 2020-06-30 12:02:20 -05:00 committed by GitHub
commit a2e930c77c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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