1
0
Fork 0

bashrc: fix LANG detection on Debian

This commit is contained in:
Pratham Patel 2024-03-27 13:13:37 +05:30
parent 0f0eb3bd75
commit ee3aa6541c
Signed by: thefossguy
SSH Key Fingerprint: SHA256:/B3wAg7jnMEBQ2JwkebbS/eXVZANDmqRfnd9QkIhxMI
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ if [[ "$(uname -s)" == 'Linux' ]]; then
export APT_LISTCHANGES_FRONTEND='none'
if grep 'ID=debian' /etc/os-release > /dev/null; then
LANG="$(grep -v '^# ' /etc/locale.gen | head -n 1 | sed -e 's/ /./')"
LANG="$(grep -v '^# ' /etc/locale.gen | grep -v '^$' | head -n 1 | sed -e 's/ /./')"
export LANG
fi
fi