From ee3aa6541c1c4c9610cacff71a9f60f70640622f Mon Sep 17 00:00:00 2001 From: Pratham Patel Date: Wed, 27 Mar 2024 13:13:37 +0530 Subject: [PATCH] bashrc: fix LANG detection on Debian --- .bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index 8ebfdaf..a3b04f5 100644 --- a/.bashrc +++ b/.bashrc @@ -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