mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-22 07:30:24 +00:00
update library
This commit is contained in:
parent
143a3ec737
commit
04e3dd9e41
1 changed files with 3 additions and 1 deletions
|
@ -72,12 +72,14 @@ os_version=$(get_os_version)
|
|||
|
||||
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
|
||||
old_version=$(cat /data/apps/stackhub/install/version.json)
|
||||
latest_version=$(cat /tmp/version.json)
|
||||
if [ "$old_version" = "$latest_version" ]
|
||||
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
|
||||
else
|
||||
echo "------------------ Welcome to update websoft9's appstore, it will take 1-3 minutes -----------"
|
||||
|
|
Loading…
Reference in a new issue