23 lines
575 B
Bash
Executable file
23 lines
575 B
Bash
Executable file
#!/bin/bash
|
|
# Script de limpieza segura - EJECUTAR CON CUIDADO
|
|
|
|
set -e
|
|
|
|
echo "🧹 Iniciando limpieza del proyecto..."
|
|
echo "⚠️ Este script eliminará archivos. Revisa antes de continuar."
|
|
read -p "¿Continuar? (yes/no): " confirm
|
|
|
|
if [ "$confirm" != "yes" ]; then
|
|
echo "❌ Limpieza cancelada"
|
|
exit 1
|
|
fi
|
|
|
|
# Script consolidado: delega en cleanup.sh para evitar duplicados
|
|
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
if [ -x "$SCRIPT_DIR/cleanup.sh" ]; then
|
|
"$SCRIPT_DIR/cleanup.sh"
|
|
else
|
|
echo "❌ No se encontró cleanup.sh en $SCRIPT_DIR"
|
|
exit 1
|
|
fi
|