部分逻辑优化,涉及进程检测代码

This commit is contained in:
2026-08-07 22:35:08 +08:00
parent d7f3ffd476
commit 5f028dae4c
2 changed files with 92 additions and 19 deletions
+5 -5
View File
@@ -666,10 +666,10 @@ print_environment_summary() {
print_title
print_subtitle "环境检测结果"
echo ""
echo -e " 操作系统:${NC} $OS $OS_VERSION"
echo -e " CPU 架构:${NC} $ARCH"
echo -e " 操作系统: $OS $OS_VERSION"
echo -e " CPU 架构: $ARCH"
echo ""
echo " 必要工具:${NC}"
echo " 必要工具:"
if [ "$HAS_GIT" = true ]; then
echo -e " git ✅ 已安装 ($(git --version | awk '{print $3}'))"
else
@@ -686,7 +686,7 @@ print_environment_summary() {
echo " wget ❌ 未安装 (将自动安装)"
fi
echo ""
echo " Docker 环境:${NC}"
echo " Docker 环境:"
if [ "$HAS_DOCKER" = true ]; then
echo -e " docker ✅ 已安装 ($(docker --version | awk '{print $3}' | tr -d ','))"
else
@@ -696,7 +696,7 @@ print_environment_summary() {
fi
if [ "$CONTAINER_EXISTS" = true ]; then
echo ""
echo " 容器状态:${NC}"
echo " 容器状态:"
if [ "$CONTAINER_RUNNING" = true ]; then
echo -e " frpc-console ✅ 运行中"
else