We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd467f7 commit d3ae2cfCopy full SHA for d3ae2cf
distrobox-init
@@ -241,7 +241,7 @@ fi
241
242
# Get host $LANG
243
if [ -f "/run/host/etc/locale.conf" ]; then
244
- HOST_LOCALE=$(grep -e '^LANG=' /run/host/etc/locale.conf | sed 's/LANG=//' | sed 's/"//g')
+ HOST_LOCALE=$(grep -e '^LANG=' /run/host/etc/locale.conf | sed 's/LANG=//' | sed 's/"//g' | sed "s/'//g")
245
HOST_LOCALE_ENCODING=$(echo "${HOST_LOCALE}" | sed -n 's/^[^.]*\.\(.*\)$/\1/p')
246
HOST_LOCALE_LANG=$(echo "${HOST_LOCALE}" | sed -n 's/^\([^.]*\)\..*$/\1/p')
247
elif [ -f "/run/host/etc/default/locale" ]; then
0 commit comments