On Trusty, file might return "FIG image text, version 3.2"

This commit is contained in:
Laurent Rineau
2017-02-01 17:51:30 +01:00
parent 438c17f0e9
commit 2ef63a5e18
@@ -139,7 +139,7 @@ fi
#check no file contains non-utf8 characters
echo '.. Checking if non utf-8 characters are used...'
txt_not_utf8=$(file -N `git ls-files --stage` | grep "text" | egrep -v "UTF-8|ASCII|XML|EPS")
txt_not_utf8=$(file -N `git ls-files --stage` | grep "text" | egrep -v "UTF-8|ASCII|XML|EPS|FIG")
if [ -n "${txt_not_utf8}" ]; then
echo "The following files have non utf-8 characters:"
echo ${txt_not_utf8}