-
Notifications
You must be signed in to change notification settings - Fork 5
/
update.sh
48 lines (45 loc) · 1.48 KB
/
update.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
#!/bin/bash
red = "\e[0;31m"
green = "\e[0;32m"
off = "\e[0m"
function banner(){
echo -e "===== ORUSULA INSTALL ====="
}
function termuxOS() {
echo -e "$red [$green+$red]$Cleaning Up Old Directories ...";
echo -e "$red [$green+$red]$off Installing ...";
git pull;
if [[ -d "Orusula.py" ]]; then
echo -e "$red [$green+$red]$off Tool Successfully Updated And Will Start In 5s!";
echo -e "$red [$green+$red]$off You can execute tool by typing Orusula"
sleep 5;
python Orusula.py
else
echo -e "$red [$green✘$red]$off Tool Cannot Be Installed On Your System! Use It As Portable !";
exit
fi
}
function debianOS() {
echo -e "$red [$green+$red]$off Cleaning Up Old Directories ...";
sudo rm -r "/usr/share/Orusula"
echo -e "$red [$green+$red]$off Installing ...";
sudo git clone https://github.com/BrahimJarrar/Orusula "/usr/share/Orusula";
if [[ -d "/usr/share/Orusula" ]]; then
echo -e "$red [$green+$red]$off Tool Successfully Updated And Will Start In 5s!";
echo -e "$red [$green+$red]$off You can execute tool by typing Orusula";
sleep 5;
python Orusula.py
else
echo -e "$red [$green✘$red]$off Tool Cannot Be Installed On Your System! Use It As Portable !";
exit
fi
}
if [[ -d "/data/data/com.termux/files/usr/" ]]; then
banner
echo -e "$red [$green+$red]$off Orusula Will Be Installed In Your System";
termuxOS
elif [ -d "/usr/bin/" ];then
banner
echo -e "$red [$green+$red]$off Orusula Will Be Installed In Your System";
debianOS
fi