-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcurl.sh
40 lines (38 loc) · 797 Bytes
/
curl.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
repo="FaAng-Toolkit-Profesional"
username="dx4grey"
install_termux() {
pkg update
pkg upgrade
pkg install git
git clone https://github.com/$username/$repo
cd $repo
bash install.sh
cd ../
rm -rf $repo
}
install_linux() {
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install git
git clone https://github.com/$username/$repo
cd $repo
bash install.sh
cd ../
sudo rm -rf $repo
}
detect_platform() {
platform=$(uname -o)
echo -e "[*] Start installation on $platform"
case $platform in
"Android")
install_termux
;;
"GNU/Linux")
install_linux
;;
*)
echo "[*] Unsupported platform: $platform"
;;
esac
}
detect_platform