-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlinux.sh
More file actions
33 lines (28 loc) · 781 Bytes
/
linux.sh
File metadata and controls
33 lines (28 loc) · 781 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
function install() {
clear
echo -e "\033[32m[~] Updating packets..."
sudo apt update -y && sudo apt upgrade -y
sleep 3
which python3 > /dev/null 2>&1
if [ "$?" -eq "0" ]; then
echo -e "\033[32m\n[~] python3 is installed"
else
echo -e "\033[31m\n[!] python3 isn't installed"
sleep 2
echo -e "\033[32m\n[~] Installing python3..."
sudo apt install python3 -y
fi
sleep 3
which pip3 > /dev/null 2>&1
if [ "$?" -eq "0" ]; then
echo -e "\033[32m\n[~] pip3 is installed"
else
echo -e "\033[31m\n[!] pip3 isn't installed"
sleep 2
echo -e "\033[32m\n[~] Installing pip3..."
sudo apt install python3-pip -y
fi
echo -e "\033[32m\n[~] Installing requirements..."
pip3 install -r requirements.txt
}
install