mirror of
https://github.com/kxgx/2.13-Ink-screen-clock.git
synced 2026-04-26 22:39:42 +08:00
更新 install.sh
This commit is contained in:
@@ -46,6 +46,11 @@ if [ "$CURRENT_LANG" != "$DEFAULT_LANG" ]; 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 被正确更新
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "无法更新 locale.gen 文件" >&2
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
# 生成 locale
|
||||
|
||||
Reference in New Issue
Block a user