forked from juanbeniteza/fsociety-1
-
Notifications
You must be signed in to change notification settings - Fork 1
/
install.sh
executable file
·57 lines (51 loc) · 2.35 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
56
57
clear
echo "
███╗ ███╗ █████╗ ███╗ ██╗██╗███████╗███████╗ ██████╗
████╗ ████║██╔══██╗████╗ ██║██║██╔════╝██╔════╝██╔═══██╗
██╔████╔██║███████║██╔██╗ ██║██║███████╗███████╗██║ ██║
██║╚██╔╝██║██╔══██║██║╚██╗██║██║╚════██║╚════██║██║ ██║
██║ ╚═╝ ██║██║ ██║██║ ╚████║██║███████║███████║╚██████╔╝
╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═══╝╚═╝╚══════╝╚══════╝ ╚═════╝
▀▀█▀▀ █▀▀█ █▀▀█ █ █▀▀ ~ Tools Instaler By Ⓜ Ⓐ Ⓝ Ⓘ Ⓢ Ⓢ Ⓞ ☪ ~
█ █ █ █ █ █ ▀▀█
▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀ ▀▀▀
";
if [ "$PREFIX" = "/data/data/com.termux/files/usr" ]; then
INSTALL_DIR="$PREFIX/usr/share/doc/fsociety"
BIN_DIR="$PREFIX/usr/bin/"
pkg install -y git python2
else
INSTALL_DIR="/usr/share/doc/fsociety"
BIN_DIR="/usr/bin/"
fi
echo "[✔] Checking directories...";
if [ -d "$INSTALL_DIR" ]; then
echo "[◉] A directory fsociety was found! Do you want to replace it? [Y/n]:" ;
read mama
if [ "$mama" = "y" ]; then
rm -R "$INSTALL_DIR"
else
exit
fi
fi
echo "[✔] Installing ...";
echo "";
git clone https://github.com/thehappydinoaa/fsociety "$INSTALL_DIR";
echo "#!/bin/bash
python $INSTALL_DIR/fsociety.py" '${1+"$@"}' > fsociety;
chmod +x fsociety;
sudo cp fsociety /usr/bin/;
rm fsociety;
if [ -d "$INSTALL_DIR" ] ;
then
echo "";
echo "[✔] Tool istalled with success![✔]";
echo "";
echo "[✔]====================================================================[✔]";
echo "[✔] ✔✔✔ All is done!! You can execute tool by typing fsociety ! ✔✔✔ [✔]";
echo "[✔]====================================================================[✔]";
echo "";
else
echo "[✘] Installation failed![✘] ";
exit
fi