-
Notifications
You must be signed in to change notification settings - Fork 29
/
install.sh
55 lines (49 loc) · 2.24 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/bash
clear
echo "
███╗ ███╗ █████╗ ███╗ ██╗██╗███████╗███████╗ ██████╗
████╗ ████║██╔══██╗████╗ ██║██║██╔════╝██╔════╝██╔═══██╗
██╔████╔██║███████║██╔██╗ ██║██║███████╗███████╗██║ ██║
██║╚██╔╝██║██╔══██║██║╚██╗██║██║╚════██║╚════██║██║ ██║
██║ ╚═╝ ██║██║ ██║██║ ╚████║██║███████║███████║╚██████╔╝
╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═══╝╚═╝╚══════╝╚══════╝ ╚═════╝
▀▀█▀▀ █▀▀█ █▀▀█ █ █▀▀ ~ Tools Instaler By Ⓜ Ⓐ Ⓝ Ⓘ Ⓢ Ⓢ Ⓞ ☪ ~
█ █ █ █ █ █ ▀▀█
▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀ ▀▀▀
";
INSTALL_DIR="/usr/share/doc/PyTube"
echo "[✔] Checking directories...";
if [ -d "$INSTALL_DIR" ];
then
echo "[◉] A directory PyTube was found! Do you want to replace it? [Y/n]:" ;
read mama
if [ $mama == "y" ] ;
then
sudo rm -R "$INSTALL_DIR"
else
exit
fi
fi
echo "[✔] Installing ...";
echo "";
sudo apt-get install -y python-pip
sudo pip install --upgrade youtube_dl
sudo apt-get install -y libav-tools
git clone https://github.com/Manisso/PyTube.git $INSTALL_DIR;
echo "#!/bin/bash
python $INSTALL_DIR/pytube.py" '${1+"$@"}' > pytube;
chmod +x pytube;
sudo cp pytube /usr/bin/;
if [ -d "$INSTALL_DIR/PyTube" ];
then
echo "";
echo "[✔]Tool istalled with success![✔]";
echo "";
echo "[✔]====================================================================[✔]";
echo "[✔] ✔✔✔ All is done!! You can execute tool by typing pytube ! ✔✔✔ [✔]";
echo "[✔]====================================================================[✔]";
echo "";
else
echo "[✘] Installation faid![✘] ";
exit
fi