Merge "Handle file magic type varying order matching"

This commit is contained in:
Jenkins 2016-06-07 01:00:57 +00:00 committed by Gerrit Code Review
commit 9dedca018f

View File

@ -84,7 +84,7 @@ for i in $(find elements -type f \
fi fi
# Ensure 4 spaces indent are used # Ensure 4 spaces indent are used
if [ "$(file -b --mime-type $i)" = "text/x-python" ]; then if [[ "$(file -b -k --mime-type $i)" =~ "text/x-python" ]]; then
flake8 $i || error "$i failed flake8" flake8 $i || error "$i failed flake8"
else else
if ! excluded indent ; then if ! excluded indent ; then