test hook lastmod

This commit is contained in:
2026-02-02 23:19:22 -07:00
parent a679c59b7b
commit 73e56f66e3
2 changed files with 5 additions and 4 deletions
+4 -2
View File
@@ -7,8 +7,10 @@ echo "Running pre-commit checks..."
# Auto-update lastmod in content files (non-blocking)
# Runs before other checks so lint/spell run on updated files
if [ -x "$(dirname "$0")/update-lastmod.sh" ]; then
"$(dirname "$0")/update-lastmod.sh" || echo "⚠️ lastmod update script encountered an issue"
# Resolve symlink to find the actual script directory
SCRIPT_DIR="$(dirname "$(readlink -f "$0")")"
if [ -x "$SCRIPT_DIR/update-lastmod.sh" ]; then
"$SCRIPT_DIR/update-lastmod.sh" || echo "⚠️ lastmod update script encountered an issue"
fi
# Track overall success/failure