修复部分情况下无法正常安装ACE环境的情况

Signed-off-by: shenmo <jifengshenmo@outlook.com>
This commit is contained in:
shenmo 2025-08-23 07:05:45 +00:00 committed by Gitee
parent b69dca63e3
commit fb9385fccd
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 3 additions and 6 deletions

View File

@ -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)

View File

@ -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)