-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlaunch.sh
More file actions
33 lines (23 loc) · 774 Bytes
/
Copy pathlaunch.sh
File metadata and controls
33 lines (23 loc) · 774 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
33
#!/bin/bash
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
cd "$SCRIPT_DIR"
environmentDit=".venv"
installScript="./scripts/install.sh"
startScript="./scripts/start.sh"
clear
if [ ! -d "$environmentDit" ]; then
read -p "Environment directory '$environmentDit' not found. Create it and install all dependencies? (Yes/y): " answer
if [[ "$answer" == "Yes" || "$answer" == "yes" || "$answer" == "Y" || "$answer" == "y" ]]; then
echo "Installing dependencies..."
bash "$installScript"
echo "Dependencies installed!"
bash "$SCRIPT_DIR/launch.sh"
else
echo "Installation canceled. Exiting..."
exit 0
fi
else
echo "Starting bots..."
source .venv/bin/activate
bash "$startScript"
fi