mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-22 14:21:34 +03:00
15 lines
311 B
Plaintext
15 lines
311 B
Plaintext
|
#!/usr/bin/env bash
|
||
|
|
||
|
whitespace=$(find . \
|
||
|
\( -path ./.git -o \
|
||
|
-path ./nix -o \
|
||
|
-path ./bin \) -prune \
|
||
|
-o -type f -exec egrep -lI " +$" {} \;);
|
||
|
|
||
|
if [ ! -z "$whitespace" ]
|
||
|
then
|
||
|
echo "found trailing whitespace in:";
|
||
|
echo "$whitespace";
|
||
|
exit 1;
|
||
|
fi
|