jemalloc/scripts/check_trailing_whitespace.sh

8 lines
142 B
Bash
Executable File

#!/usr/bin/env bash
if git grep -E '\s+$' -- ':!*.md' ':!build-aux/install-sh'
then
echo 'Error: found trailing whitespace' 1>&2
exit 1
fi