From 6628fc01e21a2fe39ac97d073bfb058264e307e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E5=85=89-k?= <36470587+kxgx@users.noreply.github.com> Date: Sun, 12 Jan 2025 04:31:59 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20install.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/install.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/install.sh b/bin/install.sh index fe8f7a8..cf273d1 100644 --- a/bin/install.sh +++ b/bin/install.sh @@ -34,7 +34,10 @@ while [ "$#" -gt 0 ]; do done # 获取当前语言环境变量 -CURRENT_LANG=$(echo $LANG) +CURRENT_LANG=$(locale | grep LANG | sed 's/.*=//') + +# 打印当前语言环境变量 +echo "当前语言环境: $CURRENT_LANG" # 设置语言环境 if [ "$CURRENT_LANG" != "$DEFAULT_LANG" ]; then