#!/bin/bash # Que los scripts auxiliares que metimos en la raiz del Joomla restaurado NO esten en el mirror set -uo pipefail BASE=/home/rafa/joomla-migration/mirror-antiguo RUN=$(cat "$BASE/CURRENT_RUN") D=$BASE/runs/$RUN echo "=== _genurls.php / _inv/ dentro de raw ===" find "$D/raw" \( -name '_genurls.php' -o -path '*_inv*' \) | wc -l echo "=== cualquier .php en raw ===" find "$D/raw" -iname '*.php' | head echo "(total: $(find "$D/raw" -iname '*.php' | wc -l))" echo echo "=== auxiliares presentes en el Joomla restaurado (fuera del mirror) ===" ls "$BASE/restore/web/_genurls.php" "$BASE/restore/web/_inv/" 2>/dev/null