server-skynet-source-3rd-je.../scripts/check_trailing_whitespace.sh
Kevin Svetlitski f2e00d2fd3 Remove trailing whitespace
Additionally, added a GitHub Action to ensure no more trailing
whitespace will creep in again in the future.

I'm excluding Markdown files from this check, since trailing whitespace
is significant there, and also excluding `build-aux/install-sh` because
there is significant trailing whitespace on the line that sets
`defaultIFS`.
2023-06-23 11:58:18 -07:00

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