-
-
Notifications
You must be signed in to change notification settings - Fork 72
/
curl.sh
executable file
·46 lines (42 loc) · 1.6 KB
/
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
41
42
43
44
45
46
#!/bin/bash -e
# Copyright (C) 2022 Shra1V32 <namanageshwar@outlook.com>
# GitHub: https://github.com/Shra1V32
RED='\033[0;31m'
NC='\033[0m'
if [[ $OSTYPE == 'linux-android'* && $(echo "$TERMUX_VERSION" | cut -c 3-5) -ge "117" ]]; then
dpkg -s git >>/dev/null 2>&1 || pkg install git -y
git clone https://github.com/Shra1V32/TataSky-Playlist-AutoUpdater || {
FILES='.tplaycreds .usercreds userDetails.json'
for i in $FILES; do
cp -frp "TataSky-Playlist-AutoUpdater/$i" .
done
rm -rf TataSky-Playlist-AutoUpdater
git clone https://github.com/Shra1V32/TataSky-Playlist-AutoUpdater
for i in $FILES; do
cp "$i" "TataSky-Playlist-AutoUpdater/"
done
}
cd TataSky-Playlist-AutoUpdater
./main.sh
elif [[ $OSTYPE == 'linux-gnu'* ]]; then
dpkg -s git >>/dev/null 2>&1 || sudo apt install git -y
git clone https://github.com/Shra1V32/TataSky-Playlist-AutoUpdater || {
FILES='.tplaycreds .usercreds userDetails.json'
for i in $FILES; do
cp -frp "TataSky-Playlist-AutoUpdater/$i" .
done
rm -rf TataSky-Playlist-AutoUpdater
git clone https://github.com/Shra1V32/TataSky-Playlist-AutoUpdater
for i in $FILES; do
cp "$i" "TataSky-Playlist-AutoUpdater/"
done
}
cd TataSky-Playlist-AutoUpdater
./main.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