shrub/pkg/arvo/.travis/check-trailing-whitespace.sh

12 lines
213 B
Bash
Raw Normal View History

2019-07-17 01:59:39 +03:00
#!/bin/bash
whitespace=$(find .. -path ../.git -prune -o \
-type f -exec egrep -l " +$" {} \;);
if [ ! -z $whitespace ]
then
echo 'found trailing whitespace in:';
echo $whitespace;
exit 1;
fi