mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
15 lines
337 B
Bash
Executable File
15 lines
337 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if ! [ -z "$1" ]; then
|
|
cd "$1"
|
|
fi
|
|
|
|
echo "Checking for Windows line endings in `pwd`"
|
|
|
|
if git ls-tree --name-only -r HEAD | xargs file -N | grep CRLF; then
|
|
echo "Some files have CRLF (Windows-style) line endings. Please convert to LF (Unix-style). git can be configured to do this automatically."
|
|
exit 1
|
|
fi
|
|
|
|
exit 0
|