修复 check-is-installed 无法正确检查在主机是否安装的问题

This commit is contained in:
2026-03-10 18:47:35 +08:00
parent bee046dcf2
commit 4fd280cf85

View File

@@ -5,7 +5,7 @@ readonly ACE_ENVIRONMENTS=(
"deepin23-run:amber-ce-deepin23" "deepin23-run:amber-ce-deepin23"
"sid-run:amber-ce-sid" "sid-run:amber-ce-sid"
) )
dpkg -s '$1' 2>/dev/null | grep -q 'Status: install ok installed' > /dev/null 2>&1 dpkg -s "$1" 2>/dev/null | grep -q 'Status: install ok installed' > /dev/null 2>&1
RET="$?" RET="$?"
if [[ "$RET" != "0" ]] && [[ "$IS_ACE_ENV" == "" ]];then ## 如果未在ACE环境中 if [[ "$RET" != "0" ]] && [[ "$IS_ACE_ENV" == "" ]];then ## 如果未在ACE环境中
@@ -40,4 +40,4 @@ if [[ "$RET" != "0" ]] && [[ "$IS_ACE_ENV" == "" ]];then ## 如果未在ACE环
exit "$RET" exit "$RET"
fi fi
## 如果在ACE环境中或者未出错 ## 如果在ACE环境中或者未出错
exit "$RET" exit "$RET"