#!/usr/bin/env bash # Warren AI - Lancio Rapido # Vai nella directory dello script cd "$(dirname "$0")" || exit 1 # Attiva environment Python source venv/bin/activate || exit 1 # Esegui scan python warren_scan.py # Apri automaticamente il file HTML più recente latest_html=$(ls -t warren_scan_*.html 2>/dev/null | head -1) if [ -n "$latest_html" ]; then echo "" echo "📂 Apertura risultati in browser..." xdg-open "$latest_html" 2>/dev/null || open "$latest_html" 2>/dev/null || echo "⚠️ Apri manualmente: $latest_html" fi # Tieni aperto il terminale echo "" echo "Premi INVIO per chiudere..." read -r