-
Notifications
You must be signed in to change notification settings - Fork 3
/
curl2.sh
23 lines (21 loc) · 992 Bytes
/
curl2.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash -e
LOCALDIR=$(pwd)
RED='\033[0;31m'
NC='\033[0m'
if [[ $OSTYPE == 'linux-android'* && $(echo "$TERMUX_VERSION" | cut -c 3-5) -ge "117" ]]; then
pkg install git
git clone https://github.com/Mobassar4u/Tata-Play-IPTV-Playlist-Maker || { rm -rf Tata-Play-IPTV-Playlist-Maker; git clone https://github.com/Mobassar4u/Tata-Play-IPTV-Playlist-Maker; }
cd Tata-Play-IPTV-Playlist-Maker;
bash main2.sh
elif [[ $OSTYPE == 'linux-gnu'* ]]; then
sudo apt-get install git
git clone https://github.com/Mobassar4u/Tata-Play-IPTV-Playlist-Maker || { rm -rf Tata-Play-IPTV-Playlist-Maker; git clone https://github.com/Mobassar4u/Tata-Play-IPTV-Playlist-Maker; }
cd Tata-Play-IPTV-Playlist-Maker;
bash main2.sh
elif [[ $(echo "$TERMUX_VERSION" | cut -c 3-5) -le "117" ]]; then
echo -e "Please use Latest Termux release, i.e, from FDroid (https://f-droid.org/en/packages/com.termux/)";
exit 1;
else
echo "Platform not supported"
exit 1;
fi