调整 Alpine 系统 bash 默认 shell 设置输出颜色

- 将 Alpine 系统设置 bash 默认 shell 的输出颜色从绿色改为黄色
- 保持原有的设置逻辑不变
- 增强输出的视觉一致性
This commit is contained in:
mini2024
2025-03-11 23:42:36 +08:00
parent f7fdaf038a
commit b5a187bf33

2
1.sh
View File

@ -21,7 +21,7 @@ if [ -f /etc/debian_version ]; then
print_green "已将 bash 设置为默认 shell"
elif [ -f /etc/alpine-release ]; then
sed -i 's/^root:.*/root:\/bin\/bash/' /etc/passwd
print_green "已将 bash 设置为默认 shell"
print_yellow "已将 bash 设置为默认 shell"
fi
# 先检查是 Debian 还是 Alpine