-
Notifications
You must be signed in to change notification settings - Fork 12
/
install.sh
61 lines (56 loc) · 2.32 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
58
59
60
61
#!/bin/bash
echo "
███╗ ███╗ █████╗ ███╗ ██╗██╗███████╗███████╗ ██████╗
████╗ ████║██╔══██╗████╗ ██║██║██╔════╝██╔════╝██╔═══██╗
██╔████╔██║███████║██╔██╗ ██║██║███████╗███████╗██║ ██║
██║╚██╔╝██║██╔══██║██║╚██╗██║██║╚════██║╚════██║██║ ██║
██║ ╚═╝ ██║██║ ██║██║ ╚████║██║███████║███████║╚██████╔╝
╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═══╝╚═╝╚══════╝╚══════╝ ╚═════╝
▀▀█▀▀ █▀▀█ █▀▀█ █ █▀▀ ~ Tools Instaler By Ⓜ Ⓐ Ⓝ Ⓘ Ⓢ Ⓢ Ⓞ ☪ ~
█ █ █ █ █ █ ▀▀█
▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀ ▀▀▀
";
echo "";
echo "[✔] You will install xdav tool in the system [Y/N] :" ;
read baba
if [ $baba == "y" ] ;
then
echo " "
else
exit
fi
echo "[✔] Where Do you want to install the tool? [Ex:/usr/share/doc]:";
read refdir
echo "[✔] Checking directories..."
if [ -d "$refdir/Xdav" ] ;
then
echo "[◉] A directory Xdav was found! Do you want to replace it? [Y/n]:" ;
read mama
if [ $mama == "y" ] ;
then
rm -R "$refdir/Xdav"
else
exit
fi
fi
echo "[✔] Installing ...";
echo "";
git clone https://github.com/Manisso/Xdav.git $refdir/Xdav;
echo "#!/bin/bash
perl $refdir/Xdav/xdav.pl" '${1+"$@"}' > xdav;
chmod +x xdav;
sudo cp xdav /usr/bin/;
rm xdav;
if [ -d "$refdir/Xdav" ] ;
then
echo "";
echo "[✔]Tool istalled with success![✔]";
echo "";
echo "[✔]====================================================================[✔]";
echo "[✔] ✔✔✔ All is done!! You can execute Xdav by typing xdav ! ✔✔✔ [✔]";
echo "[✔]====================================================================[✔]";
echo "";
else
echo "[✘] Installation faid![✘] ";
exit
fi