diff --git a/bin/dib-lint b/bin/dib-lint index d17b2d95c..f75c1ccd6 100755 --- a/bin/dib-lint +++ b/bin/dib-lint @@ -84,7 +84,7 @@ for i in $(find elements -type f \ fi # 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" else if ! excluded indent ; then