Skip to content

Commit d3ae2cf

Browse files
Strip single quotes when parsing locale.conf (#1605)
1 parent dd467f7 commit d3ae2cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

distrobox-init

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ fi
241241

242242
# Get host $LANG
243243
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')
244+
HOST_LOCALE=$(grep -e '^LANG=' /run/host/etc/locale.conf | sed 's/LANG=//' | sed 's/"//g' | sed "s/'//g")
245245
HOST_LOCALE_ENCODING=$(echo "${HOST_LOCALE}" | sed -n 's/^[^.]*\.\(.*\)$/\1/p')
246246
HOST_LOCALE_LANG=$(echo "${HOST_LOCALE}" | sed -n 's/^\([^.]*\)\..*$/\1/p')
247247
elif [ -f "/run/host/etc/default/locale" ]; then

0 commit comments

Comments
 (0)