From d9955a5a208761af37a8a5804c484b954133efb6 Mon Sep 17 00:00:00 2001 From: Mara <177581589+catgirlconspiracy@users.noreply.github.com> Date: Tue, 5 Nov 2024 19:10:01 +0100 Subject: [PATCH] Strip single quotes when parsing locale.conf --- distrobox-init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distrobox-init b/distrobox-init index 309a3a5ee0..81a1ce26f9 100755 --- a/distrobox-init +++ b/distrobox-init @@ -241,7 +241,7 @@ fi # Get host $LANG if [ -f "/run/host/etc/locale.conf" ]; then - 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") HOST_LOCALE_ENCODING=$(echo "${HOST_LOCALE}" | sed -n 's/^[^.]*\.\(.*\)$/\1/p') HOST_LOCALE_LANG=$(echo "${HOST_LOCALE}" | sed -n 's/^\([^.]*\)\..*$/\1/p') elif [ -f "/run/host/etc/default/locale" ]; then