-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·41 lines (31 loc) · 1.06 KB
/
run.sh
File metadata and controls
executable file
·41 lines (31 loc) · 1.06 KB
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
33
34
35
36
37
38
39
40
41
#!/bin/bash
# RedClaw: Local One-Go Runner
set -e
echo "[REDCLAW] Starting RedClaw execution..."
# 1. Check for Python
if ! command -v python3 &> /dev/null; then
echo "[REDCLAW] Error: Python 3 is not installed. Please install it to continue."
exit 1
fi
# 2. Virtual Environment Setup
if [ ! -d "venv" ]; then
echo "[REDCLAW] Creating virtual environment..."
python3 -m venv venv
fi
source venv/bin/activate
# 3. Dependency Installation
echo "[REDCLAW] Syncing dependencies..."
pip install -r requirements.txt -q
# 4. Playwright Setup
echo "[REDCLAW] Ensuring browser drivers are present..."
playwright install chromium
# 5. Local Data Validation
if [ ! -f "user_profile.json" ]; then
echo "[REDCLAW] Warning: 'user_profile.json' not found. Please create it from 'user_profile.example.json'."
fi
if [ ! -f "resume.pdf" ]; then
echo "[REDCLAW] Warning: 'resume.pdf' not found. Applications will not have resume data."
fi
# 6. Run Agent
read -p "[REDCLAW] Enter your job application goal (e.g., 'Apply for Y at X'): " GOAL
python3 main.py --goal "$GOAL"