armada/tools/whitespace-linter.sh

9 lines
92 B
Bash

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