fix: Face processor now saves status and total_faces to face.json
This commit is contained in:
Executable
+33
@@ -0,0 +1,33 @@
|
||||
#!/bin/bash
|
||||
# Check for relative paths in documentation
|
||||
|
||||
set -e
|
||||
|
||||
DOCS_DIR="/Users/accusys/momentry_core/docs_v1.0"
|
||||
|
||||
echo "=== Checking for Relative Paths in Documentation ==="
|
||||
echo ""
|
||||
|
||||
FOUND_ISSUES=0
|
||||
|
||||
# Find all markdown files
|
||||
while IFS= read -r -d '' file; do
|
||||
# Check for relative paths (src/, scripts/, .env, target/) that are not absolute
|
||||
RELATIVE=$(grep -n "src/\|scripts/\|\.env\|target/" "$file" 2>/dev/null | grep -v "/Users/accusys" | grep -v "node_modules" || true)
|
||||
|
||||
if [ -n "$RELATIVE" ]; then
|
||||
echo "❌ Relative paths found in: $file"
|
||||
echo "$RELATIVE"
|
||||
echo ""
|
||||
FOUND_ISSUES=1
|
||||
fi
|
||||
done < <(find "$DOCS_DIR" -name "*.md" -type f -print0)
|
||||
|
||||
if [ $FOUND_ISSUES -eq 0 ]; then
|
||||
echo "✅ All documents use absolute paths"
|
||||
else
|
||||
echo ""
|
||||
echo "⚠️ Please fix relative paths to use absolute paths"
|
||||
echo "Example: src/api/scan.rs → /Users/accusys/momentry_core/src/api/scan.rs"
|
||||
exit 1
|
||||
fi
|
||||
Reference in New Issue
Block a user