pegleg/tools/gate/whitespace-linter.sh
Ian H. Pittwood 33286a1173 Simplify whitespace-linter script
Pegleg currently uses `find` to search files in the whitespace-linter
script. A more simplified approach could be taken by using `git grep`
instead. This method levarages .gitignore so a separate list of files
in the script no longer needs to be maintained. This is the method used
by Airship Armada.

Change-Id: I26a2a95f533b9ff62de784d004f25ade552a5b31
2019-04-10 15:37:08 -05:00

10 lines
93 B
Bash
Executable File

#!/usr/bin/env bash
set -x
RES=$(git grep -E -l " +$")
if [[ -n $RES ]]; then
exit 1
fi