|
#!/bin/bash
|
|
|
|
EXCLUDES=(
|
|
"*/node_modules/*"
|
|
"*/.git/*"
|
|
"*/__pycache__/*"
|
|
"*/venv/*"
|
|
)
|
|
|
|
EXCLUDE_PARAMS=()
|
|
|
|
for path in "${EXCLUDES[@]}"; do
|
|
EXCLUDE_PARAMS+=("-not" "-path" "$path")
|
|
done
|
|
|
|
find . -type f "${EXCLUDE_PARAMS[@]}" -exec file '{}' \; | grep 'CRLF'
|
|
|