From b5a187bf3338a6aba444f21b86ad2cf1eed9edc9 Mon Sep 17 00:00:00 2001 From: mini2024 Date: Tue, 11 Mar 2025 23:42:36 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=20Alpine=20=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=20bash=20=E9=BB=98=E8=AE=A4=20shell=20=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E8=BE=93=E5=87=BA=E9=A2=9C=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将 Alpine 系统设置 bash 默认 shell 的输出颜色从绿色改为黄色 - 保持原有的设置逻辑不变 - 增强输出的视觉一致性 --- 1.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1.sh b/1.sh index c66da03..dfe379e 100644 --- a/1.sh +++ b/1.sh @@ -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