From 86bc122c5fd35443f367ce15b1d53fc8321888ce Mon Sep 17 00:00:00 2001 From: gfdgd_xi <3025613752@qq.com> Date: Fri, 23 Jun 2023 16:51:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9C=A8DEEPIN/UOS=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F=E8=8F=9C=E5=8D=95=E6=A3=80=E6=9F=A5=E5=88=B0UENGINE?= =?UTF-8?q?=E4=B8=8D=E5=AD=98=E5=9C=A8=E4=BD=86=E6=98=AF=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E5=AE=89=E8=A3=85=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uengine-runner-applist-launch.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/uengine-runner-applist-launch.sh b/uengine-runner-applist-launch.sh index 18a10f8..8a20ffa 100755 --- a/uengine-runner-applist-launch.sh +++ b/uengine-runner-applist-launch.sh @@ -14,16 +14,16 @@ else if [ "$versionLower" = "deepin" ] || [ "$versionLower" = "uos" ]; then echo "此系统为 Deepin/UOS,使用 apt 安装" zenity --question --text="您还未安装 UEngine,是否现在安装?" --no-wrap - if [[ $? = 0 ]]; then - "$dir/uengine-runner-applist-launch.sh" deepin-terminal -C "pkexec apt install uengine -y" + if [[ $? == 0 ]]; then + "$dir/launch.sh" deepin-terminal -C "pkexec apt install uengine -y" fi else # 因为安装器出现问题,所以废弃 zenity --error --text="请安装 UEngine 后继续" --no-wrap echo "非 Deepin/UOS 系统,使用 shenmo 提供的脚本安装\n暂未保证此安装脚本一定安装成功" zenity --question --text="您还未安装 UEngine,是否现在安装?" --no-wrap - if [[ $? = 0 ]]; then - deepin-terminal -C "bash /opt/apps/com.gitee.uengine.runner.spark/files/uengine-installer" + if [[ $? == 0 ]]; then + "$dir/launch.sh" deepin-terminal -C "bash /opt/apps/com.gitee.uengine.runner.spark/files/uengine-installer" fi fi fi