diff --git a/scripts/migrate-all-sites.sh b/scripts/migrate-all-sites.sh index 53ed0751..683b916c 100755 --- a/scripts/migrate-all-sites.sh +++ b/scripts/migrate-all-sites.sh @@ -6,7 +6,7 @@ set -e echo "🔄 Starting migration for all sites..." # Get list of all sites -SITES=$(docker compose exec -T backend ls -1 /home/frappe/frappe-bench/sites | grep -v '^apps.txt$' | grep -v '^apps.json$' | grep -v '^common_site_config.json$' | grep -v '^assets$' | grep -v '^\..*$') +SITES=$(docker compose exec -T backend ls -1 /home/frappe/frappe-bench/sites grep -vE '^(apps\.txt|apps\.json|common_site_config\.json|assets|\..*)$' || true) if [ -z "$SITES" ]; then echo "❌ No sites found!"