Avoid descending into modules dir
This commit is contained in:
parent
06045142c2
commit
031b4a70e4
1 changed files with 3 additions and 3 deletions
|
@ -7,15 +7,15 @@ command -v isutf8 >/dev/null || { echo "Install 'isutf8' from moreutils to use t
|
|||
|
||||
exit_code=0
|
||||
|
||||
find src/ -type f -not -path "src/modules/*" -print0 | xargs -0 isutf8 -- || exit_code=1
|
||||
find src/ -path src/modules -prune -o -type f -print0 | xargs -0 isutf8 -- || exit_code=1
|
||||
for ex in png ogg jpg wav gif xcf bin webp; do args+=(! -name "*.$ex"); done
|
||||
find data/ -type f "${args[@]}" ! -name "test_cve_2018_1999023_2.cfg" -print0 | xargs -0 isutf8 -- || exit_code=1
|
||||
find po/ -type f -print0 | xargs -0 isutf8 -- || exit_code=1
|
||||
|
||||
isutf8 changelog.md || exit_code=1
|
||||
|
||||
if [ $exit_code != 0 ]; then
|
||||
if [ "$exit_code" != 0 ]; then
|
||||
echo "Found invalid UTF8 file(s)!"
|
||||
fi
|
||||
|
||||
exit $exit_code
|
||||
exit "$exit_code"
|
||||
|
|
Loading…
Add table
Reference in a new issue