支持分应用显示正在更新

This commit is contained in:
shenmo 2022-10-23 13:42:32 +08:00
parent b5488b6c32
commit 05cfdbb318

View File

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