From 8ff1a20fef99593f37c82382fe5c29af91638328 Mon Sep 17 00:00:00 2001 From: Vincent Knecht Date: Sat, 13 Feb 2016 11:33:32 +0100 Subject: Fixed DEFLOCAL shell var substitution while sed-ing /etc/locale.gen --- rpi2-gen-image.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpi2-gen-image.sh b/rpi2-gen-image.sh index c6bef8a..3c80bf3 100755 --- a/rpi2-gen-image.sh +++ b/rpi2-gen-image.sh @@ -220,7 +220,7 @@ LANG=C chroot $R dpkg-reconfigure -f noninteractive tzdata # Set up default locales to "en_US.UTF-8" default if [ "$ENABLE_MINBASE" = false ] ; then - LANG=C chroot $R sed -i '/${DEFLOCAL}/s/^#//' /etc/locale.gen + LANG=C chroot $R sed -i "/${DEFLOCAL}/s/^#//" /etc/locale.gen LANG=C chroot $R locale-gen ${DEFLOCAL} fi -- cgit v1.2.3