From 70f268cc29c3c0f04afcb8243c2180a0da722fbd Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 29 Aug 2014 08:50:37 +0200 Subject: installer: remove unnecessary quoting. --- installer.sh.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'installer.sh.in') diff --git a/installer.sh.in b/installer.sh.in index 4bbd9ab..5aa5ce9 100644 --- a/installer.sh.in +++ b/installer.sh.in @@ -291,7 +291,8 @@ menu_keymap() { set_keymap() { local KEYMAP=$(get_option KEYMAP) - if [ -f "/etc/vconsole.conf" ]; then + + if [ -f /etc/vconsole.conf ]; then sed -i -e "s|KEYMAP=.*|KEYMAP=$KEYMAP|g" $TARGETDIR/etc/vconsole.conf else sed -i -e "s|KEYMAP=.*|KEYMAP=$KEYMAP|g" $TARGETDIR/etc/rc.conf @@ -319,6 +320,7 @@ menu_locale() { set_locale() { local LOCALE=$(get_option LOCALE) + sed -i -e "s|LANG=.*|LANG=$LOCALE|g" $TARGETDIR/etc/locale.conf # Uncomment locale from /etc/default/libc-locales and regenerate it. sed -e "/${LOCALE}/s/^\#//" -i $TARGETDIR/etc/default/libc-locales -- cgit 1.4.1