pegleg/tools/gate/whitespace-linter.sh
Phil Sphicas 4ed7005329 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
2020-09-22 04:52:18 +00:00

10 lines
96 B
Bash
Executable File

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