-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
35 lines (28 loc) Β· 2.09 KB
/
setup.sh
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
#!/bin/bash
clear
echo -e "\e[32m
ββββββββββββββββββββββββββββββββββββββββββββββ βββββββββββββββββββ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ βββββββ
ββββββββββββββββββββββββββββββββββββββββββββββ βββββββ βββββββ
ββββββββββββββββββββββββββββββββββββββββββββββ βββββββββββββββββββ
βββββββ ββββββββββββββββββββ βββββββ βββββββββββββ
βββββββ ββββββββββββββββββββ βββββββ βββββββββββββ
βββββββ βββββββββββββββββββββββββββββββββ ββββββββββββββββββββ
TechAtlasDev -> https://github.com/TechAtlasDev
\e[0m"
if ! command -v python3 &> /dev/null; then
echo -e "\e[1;31m[\e[34m+\e[1;31m] \e[0mThis system requires Python 3 to be installed.\e[0m"
exit 1
fi
current_directory=$(pwd)
echo "export PATH=\$PATH:$current_directory/src" >> ~/.bashrc
source ~/.bashrc
if [ -e "requirements.txt" ]; then
echo -e "\e[1;32m[\e[34m+\e[1;32m] \e[0mInstalling requirements..."
pip3 install -r requirements.txt
else
echo -e "\e[1;31m[\e[34m+\e[1;31m] \e[0mRequirements.txt file not found in the current directory."
exit 1
fi
echo -e "\e[1;32m[\e[34m+\e[1;32m] \e[0mProcess finished, use the 'prl412' command."
bash