blob: ef4ccf371ece3a998ec0abbc9675baa5e0d5c88e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
#!/bin/bash
find -H . -type f -name "*.txt" -exec sed -i 's/[[:blank:]]*$//' {} \;
export RES=$(git diff --name-only)
if [[ -n "${RES}" ]]; then
echo "Extra spaces before new lines detected in files:"
git diff --name-only
exit 0 # Not relevant
fi
|