forked from powenn/AltServer-Linux-ShellScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate.sh
More file actions
executable file
·27 lines (23 loc) · 808 Bytes
/
update.sh
File metadata and controls
executable file
·27 lines (23 loc) · 808 Bytes
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
#!/bin/bash
# Author of the script : powen
cd "$(dirname "$0")"
LocalVersion=$(sed -n 1p version)
LatestVersion=$(curl -Lsk 'https://github.com/powenn/AltServer-Linux-ShellScript/raw/main/version')
Arch=$(sed -n 2p version)
if [[ $LatestVersion != $LocalVersion ]] ; then
rm -rf AltStore.ipa
wget https://github.com/powenn/AltServer-Linux-ShellScript/raw/main/AltStore.ipa
cd ..
wget https://github.com/powenn/AltServer-Linux-ShellScript/releases/download/$LatestVersion/AltServer-$Arch.zip
unzip -o AltServer-$Arch.zip
rm -rf AltServer-$Arch.zip
echo "Done"
elif [[ $LatestVersion = $LocalVersion ]] ; then
echo "you are using the latest release"
fi
cat << EOF
What updated in version $LatestVersion ?
Script:
- Added update option
- daemon mode improved
EOF