test hook lastmod
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user