dotfiles/bin/find_crlf

17 lines
262 B
Bash
Executable File

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