#!/bin/bash

# This script will check which info pages need to be updated
echo "Checking information pages status..."
echo "=================================="

for file in terms.html acceptable-use.html promotional-terms.html sitemap-towns.html gdpr.html; do
  if [ -f "public/$file" ]; then
    size=$(wc -c < "public/$file")
    if [ $size -lt 10000 ]; then
      echo "$file - NEEDS UPDATE (size: $size bytes)"
    else
      echo "$file - OK (size: $size bytes)"
    fi
  else
    echo "$file - MISSING"
  fi
done
