From d7f90c80bd1cd26dc542f232227b7322c985bd3e Mon Sep 17 00:00:00 2001 From: shenmo Date: Sat, 23 Aug 2025 07:05:45 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86=E6=83=85?= =?UTF-8?q?=E5=86=B5=E4=B8=8B=E6=97=A0=E6=B3=95=E6=AD=A3=E5=B8=B8=E5=AE=89?= =?UTF-8?q?=E8=A3=85ACE=E7=8E=AF=E5=A2=83=E7=9A=84=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tool/ssaudit | 5 ++--- tool/ssinstall | 4 +--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/tool/ssaudit b/tool/ssaudit index 4909876..c6f0a58 100755 --- a/tool/ssaudit +++ b/tool/ssaudit @@ -204,14 +204,13 @@ export -f ensure_aptss_exist function ensure_ace_env() { local ace_env_pkg="${1}" - if ! dpkg -l "$ace_env_pkg" &>/dev/null; then - echo "ACE环境$ace_env_pkg未安装,正在尝试安装..." + + echo "ACE环境$ace_env_pkg正在尝试安装..." zenity --info --text="首次使用$ace_env_pkg环境,重启或注销桌面后才能在启动器中展示,不影响应用启动。安装将在后台继续。" --title="ACE环境安装" & if ! aptss install -y "$ace_env_pkg"; then echo "安装$ace_env_pkg失败" return 1 fi - fi return 0 } export user=$(who | awk '{print $1}' | head -n 1) diff --git a/tool/ssinstall b/tool/ssinstall index e84a186..1617d9f 100755 --- a/tool/ssinstall +++ b/tool/ssinstall @@ -204,14 +204,12 @@ export -f ensure_aptss_exist function ensure_ace_env() { local ace_env_pkg="${1}" - if ! dpkg -l "$ace_env_pkg" &>/dev/null; then - echo "ACE环境$ace_env_pkg未安装,正在尝试安装..." + echo "ACE环境$ace_env_pkg正在尝试安装..." zenity --info --text="首次使用$ace_env_pkg环境,重启或注销桌面后才能在启动器中展示,不影响应用启动。安装将在后台继续。" --title="ACE环境安装" & if ! aptss install -y "$ace_env_pkg"; then echo "安装$ace_env_pkg失败" return 1 fi - fi return 0 } export user=$(who | awk '{print $1}' | head -n 1)