Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix:repeat trigger update locale when locale exists #1614

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

heysion
Copy link

@heysion heysion commented Nov 14, 2024

Description:

The $HOST_LOCALE contains the '-' symbol, but the output of locale -a does not include this symbol, which leads to repeated updates when updating the locale.

Log:

fixed can correctly skip over these duplicates update.

 + [ -e /etc/locale.gen ]
 + locale -a
 + grep -qi en_us.utf8 
 + locale -a
 + echo zh_CN.UTF-8
 + tr -d - 
 + grep -qi zh_CN.UTF8 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant