!136 3101重大事故:更新系统修复

Merge pull request !136 from shenmo/dev
This commit is contained in:
shenmo 2022-10-23 02:15:44 +00:00 committed by Gitee
commit b0453c7a8a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
function network-check()
{
#超时时间
local timeout=5
local timeout=15
#目标网站
local target=www.baidu.com

View File

@ -22,7 +22,7 @@ done | zenity --list --text="选择你想更新的应用" --column=是否更新
if [ "$PKG_UPGRADE_LIST" = "" ];then
zenity --info --icon-name=spark-store --text "没有选中任何软件\n但是你并没有站在世界之巅" --title "星火商店更新检测服务" --height 150 --width 300
else
sudo aptss install $PKG_UPGRADE_LIST -y | zenity --progress --auto-close --no-cancel --pulsate --text=正在更新已选中的应用,请稍候... --height 70 --width 400 --title="星火商店更新模块"
pkexec bash aptss install $PKG_UPGRADE_LIST -y | zenity --progress --auto-close --no-cancel --pulsate --text=正在更新已选中的应用,请稍候... --height 70 --width 400 --title="星火商店更新模块"
if [ "$?" = "0" ];then