update library

This commit is contained in:
qiaofeng1227 2023-05-26 16:02:10 +08:00
parent 143a3ec737
commit 04e3dd9e41

View file

@ -72,12 +72,14 @@ os_version=$(get_os_version)
CheckUpdate(){ CheckUpdate(){
echo "Update appstore library ..."
cd /data/library && git pull
cd /tmp && rm -rf install.sh && wget https://websoft9.github.io/StackHub/install/version.json cd /tmp && rm -rf install.sh && wget https://websoft9.github.io/StackHub/install/version.json
old_version=$(cat /data/apps/stackhub/install/version.json) old_version=$(cat /data/apps/stackhub/install/version.json)
latest_version=$(cat /tmp/version.json) latest_version=$(cat /tmp/version.json)
if [ "$old_version" = "$latest_version" ] if [ "$old_version" = "$latest_version" ]
then then
echo "Your appstore is latest, it not need to update..." echo "Your plugins and service is latest, it not need to update..."
exit 1 exit 1
else else
echo "------------------ Welcome to update websoft9's appstore, it will take 1-3 minutes -----------" echo "------------------ Welcome to update websoft9's appstore, it will take 1-3 minutes -----------"