forked from I2P_Developers/i2p.i2p
checkcerts.sh: check for extraneous spaces
(trying to catch the problem noted at http://zzz.i2p/topics/1663)
This commit is contained in:
@ -164,6 +164,14 @@ do
|
|||||||
else
|
else
|
||||||
compute_dates
|
compute_dates
|
||||||
fi
|
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
|
done
|
||||||
|
|
||||||
if [ -n "$FAIL" ]; then
|
if [ -n "$FAIL" ]; then
|
||||||
|
Reference in New Issue
Block a user