-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.sh
More file actions
executable file
·32 lines (26 loc) · 814 Bytes
/
Copy pathstart.sh
File metadata and controls
executable file
·32 lines (26 loc) · 814 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
# Gmail Unsubscribe Agent - Start Script
echo "🚀 Gmail Unsubscribe Agent"
echo "=========================="
# Check if Python is available
if ! command -v python3 &> /dev/null; then
echo "❌ Python 3 não encontrado. Por favor, instale Python 3.8 ou superior."
exit 1
fi
# Check if virtual environment exists
if [ ! -d "venv" ]; then
echo "📦 Criando ambiente virtual..."
python3 -m venv venv
fi
# Activate virtual environment
echo "🔧 Ativando ambiente virtual..."
source venv/bin/activate
# Install requirements if needed
if [ ! -f "venv/.requirements_installed" ]; then
echo "📥 Instalando dependências..."
pip install -r requirements.txt
touch venv/.requirements_installed
fi
# Run the main script
echo "▶️ Iniciando agente..."
python main.py "$@"