Ignore binary files when whitespace linting

Update the whitespace linter script to avoid tripping on png files,
using git-grep option:
    -I
        Don’t match the pattern in binary files.

Change-Id: Ifcd60354086cc606dbd3e71981484201b00c619c
This commit is contained in:
Phil Sphicas 2020-09-22 04:43:14 +00:00
parent 742e12c638
commit 4ed7005329
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
set -x
RES=$(git grep -E -l " +$")
RES=$(git grep -E -l -I " +$")
if [[ -n $RES ]]; then
exit 1