From 95e22894a777915de1f4139ab18e55310596a423 Mon Sep 17 00:00:00 2001 From: shenmo <47873776+shenmo7192@users.noreply.github.com> Date: Thu, 19 Feb 2026 21:07:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E5=AE=89=E8=A3=85?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E5=88=A4=E6=96=AD=E9=94=99=E8=AF=AF=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extras/check-is-installed | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extras/check-is-installed b/extras/check-is-installed index 966d9ba4..34643bfc 100755 --- a/extras/check-is-installed +++ b/extras/check-is-installed @@ -5,7 +5,7 @@ readonly ACE_ENVIRONMENTS=( "deepin23-run:amber-ce-deepin23" "sid-run:amber-ce-sid" ) -dpkg -s "$1" > /dev/null 2>&1 +dpkg -s '$1' 2>/dev/null | grep -q 'Status: install ok installed' > /dev/null 2>&1 RET="$?" if [[ "$RET" != "0" ]] && [[ "$IS_ACE_ENV" == "" ]];then ## 如果未在ACE环境中 @@ -18,7 +18,7 @@ if [[ "$RET" != "0" ]] && [[ "$IS_ACE_ENV" == "" ]];then ## 如果未在ACE环 # 在ACE环境中使用dpkg -s检查安装状态 # 使用dpkg -s并检查输出中是否包含"Status: install ok installed" - $ace_cmd bash -c "dpkg -s '$1' 2>/dev/null | grep -q 'Status: install ok installed'" + $ace_cmd dpkg -s "$1" 2>/dev/null | grep -q 'Status: install ok installed' try_run_ret="$?" # 最终检测结果处理