mirror of
https://github.com/urbit/shrub.git
synced 2024-12-21 09:51:36 +03:00
12 lines
213 B
Bash
12 lines
213 B
Bash
|
#!/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
|