-
Notifications
You must be signed in to change notification settings - Fork 1
/
install.sh
39 lines (28 loc) · 878 Bytes
/
install.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
36
37
38
39
#!/bin/bash
# Authors : Dreifus-404 <github.com/Dreifus-404> | Sysb1n <github.com/sidneypepo>
# Description : this code install necessary packages of program
function installing_packages {
cd $PREFIX/bin
if [ -x python ]; then
echo -e "Package : Python is \e[32mInstalled!\e[0m."
else
echo -e "Package : Python \e[40;31mnot installed\e[0m\a\a"; sleep 5
echo -e "installing package..."
apt-get install python -y > /dev/null
cd ~/IPconsult/
./install.sh
fi
}
function installing_importations {
cd ~/IPconsult/
if [ -x requeriments.txt ]; then pip install -r requirements.txt; fi
if [ $? != 0 ]; then
clear
echo "erro, verify your connection!."
else
clear
echo "installed packages of importation!."
fi
}
installing_packages
installing_importations