更新 install.sh

This commit is contained in:
星光-k
2025-01-12 03:59:40 +00:00
committed by GitHub
parent 7a9108134a
commit 368ed919dd

View File

@@ -45,7 +45,7 @@ if [ "$CURRENT_LANG" != "$DEFAULT_LANG" ]; then
export LC_ALL=$DEFAULT_LANG
# 检查 locale.gen 中是否已存在 DEFAULT_LANG
if ! grep -q "^$DEFAULT_LANG UTF-8" /etc/locale.gen; then
if ! grep -q "$DEFAULT_LANG UTF-8" /etc/locale.gen; then
# 如果不存在,则添加到 locale.gen
echo "$DEFAULT_LANG UTF-8" | sudo tee -a /etc/locale.gen
# 确保 locale.gen 被正确更新