checkcerts.sh: check for extraneous spaces

(trying to catch the problem noted at http://zzz.i2p/topics/1663)
This commit is contained in:
kytv
2014-09-06 22:14:06 +00:00
parent 80d6921a66
commit c4d7f9924f

View File

@ -164,6 +164,14 @@ do
else
compute_dates
fi
if grep '\s$' $i > /dev/null 2>&1; then
echo "********* Trailing whitespace found in file $i *********"
FAIL=1
fi
if grep '^\s' $i > /dev/null 2>&1; then
echo "********* Leading whitespace found in file $i *********"
FAIL=1
fi
done
if [ -n "$FAIL" ]; then