33286a1173
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
10 lines
93 B
Bash
Executable File
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
|