diff --git a/bin/dib-lint b/bin/dib-lint index 24877849..2a797958 100755 --- a/bin/dib-lint +++ b/bin/dib-lint @@ -80,7 +80,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