summaryrefslogtreecommitdiff
path: root/pre-commit.sh
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2025-09-23 14:26:18 -0400
committerpommicket <pommicket@gmail.com>2025-09-23 14:26:18 -0400
commitee57036c9cfdff27a81a38a9c5abc3b631f3a83c (patch)
tree812ad4393c68b0575c4010d9b25d39e20ceefb1c /pre-commit.sh
parent6ae91130c7c2ff1c11ecfe5798d8037954a4d570 (diff)
POM website
Diffstat (limited to 'pre-commit.sh')
-rwxr-xr-xpre-commit.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/pre-commit.sh b/pre-commit.sh
index 5930194..86f6dac 100755
--- a/pre-commit.sh
+++ b/pre-commit.sh
@@ -1,7 +1,7 @@
#!/bin/bash
# Check with Nu validator (https://github.com/validator/validator) if installed
-which vnu >/dev/null && vnu site/*.html || exit 1
-for file in site/*.html; do
+which vnu >/dev/null && vnu site/*.html site/tests/*.html || exit 1
+for file in site/*.html site/tests/*.html; do
# /dev/null is to force file names to be printed (grep -H is a GNU extension)
if grep -n '\s$' /dev/null $file; then
echo "$file has trailing white space."