File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22cd ..
3- echo " Searching for possible UTF-16 BE BOMs..."
4- find . -type f -not \( -path " ./node_modules/*" \) -not \( -path " ./fakeS3/*" \) -print0 | xargs -0r awk ' /^\xFE\xFF/ {print FILENAME} {nextfile}'
5- echo " Searching for possible UTF-16 LE BOMs..."
6- find . -type f -not \( -path " ./node_modules/*" \) -not \( -path " ./fakeS3/*" \) -print0 | xargs -0r awk ' /^\xFF\xFE/ {print FILENAME} {nextfile}'
3+ echo " Searching for possible non-UTF-8 compatible..."
4+ find . -type f ! \( -path " ./.git/*" -o -path " ./node_modules/*" -o -path " ./S3rver/*" -o -path " ./dev/cache/*" \) -exec file --mime {} \; | grep -v ' utf-8\|binary\|ascii'
75echo " Searching for possible UTF-8 BOMs..."
8- find . -type f -not \( -path " ./node_modules/*" \) -not \( - path " ./fakeS3 /*" \) -print0 | xargs -0r awk ' /^\xEF\xBB\xBF/ {print FILENAME} {nextfile}'
6+ find . -type f ! \( -path " ./.git/* " -o -path " ./ node_modules/*" -o -path " ./S3rver/* " -o - path " ./dev/cache /*" \) -print0 | xargs -0r awk ' /^\xEF\xBB\xBF/ {print FILENAME} {nextfile}'
97cd - > /dev/null
You can’t perform that action at this time.
0 commit comments