From 0f6f24aa950b7e658d6d525f386f25d99e7b6eb9 Mon Sep 17 00:00:00 2001 From: gfdgd_xi <3025613752@qq.com> Date: Tue, 2 May 2023 13:41:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=B5=84=E6=BA=90=E8=A7=A3?= =?UTF-8?q?=E5=8E=8B=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uengine-installer | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/uengine-installer b/uengine-installer index ce1adb7..738410a 100755 --- a/uengine-installer +++ b/uengine-installer @@ -66,6 +66,11 @@ tar_path=`echo "$tar_path" | sed $'s/\'//g'` echo "开始部署。部署过程会需要root权限,完成后会要求重启。请注意不要在安装过程中安装或卸载其他软件" cd /tmp tar -xf "$tar_path" +if [[ $? != 0 ]]; then + echo 解压错误,无法继续 + zenity --error --no-wrap '--text=安装错误,原因:资源解压失败!' + exit 1 +fi # 移除包内旧版的run_daemon.sh(如果有的话) aria2c -x 16 -s 16 -d /tmp -o run_daemon.sh http://uengine-runner.gfdgdxi.top/shell/run_daemon.sh if [[ $? == 0 ]]; then