Browse Source

Don't check the .git folder for BOM issues.

master
Reece H. Dunn 5 years ago
parent
commit
16327703f4
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      tests/bom.test

+ 1
- 1
tests/bom.test View File

# TODO checking for other encodings (e.g. UTF-16, UTF-32, UTF-7) needs more elaborate search, # TODO checking for other encodings (e.g. UTF-16, UTF-32, UTF-7) needs more elaborate search,
# otherwise it shows many false positives # otherwise it shows many false positives


egrep -rlI $'\xEF\xBB\xBF' . | tee tests/bom.check >/dev/null # UTF-8
egrep -rlI $'\xEF\xBB\xBF' * | tee tests/bom.check >/dev/null # UTF-8


if [ -s tests/bom.check ] ; then if [ -s tests/bom.check ] ; then
echo "found:" echo "found:"

Loading…
Cancel
Save