add bin/find_crlf (shell script to find CRLF line endings)
This commit is contained in:
parent
b1a554d913
commit
734946a7ab
|
|
@ -0,0 +1,16 @@
|
||||||
|
#!/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'
|
||||||
|
|
||||||
Loading…
Reference in New Issue