mirror of
https://gitlab.com/lvra/lvra.gitlab.io.git
synced 2024-12-30 17:40:25 +01:00
10 lines
218 B
Bash
10 lines
218 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
TRAILING_SPACES=$(find content -name '*.md' -exec grep -EHn ' +$' {} \;)
|
||
|
|
||
|
if [[ -n "$TRAILING_SPACES" ]]; then
|
||
|
echo "Error: these files have trailing spaces!"
|
||
|
echo "$TRAILING_SPACES"
|
||
|
exit 1
|
||
|
fi
|