mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-04-26 01:10:16 +08:00
修复 check-is-installed 无法正确检查在主机是否安装的问题
This commit is contained in:
@@ -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"
|
||||||
Reference in New Issue
Block a user