From 8ff1a20fef99593f37c82382fe5c29af91638328 2016-02-13 10:33:32 From: Vincent Knecht Date: 2016-02-13 10:33:32 Subject: [PATCH] Fixed DEFLOCAL shell var substitution while sed-ing /etc/locale.gen --- 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