summaryrefslogtreecommitdiff
path: root/mkarchroot
diff options
context:
space:
mode:
authorGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>2011-06-17 18:13:55 -0300
committerPierre Schmitz <pierre@archlinux.de>2011-07-25 18:28:17 +0200
commit1febb47b2c689ffec7b936885ab8dd36fc24b18b (patch)
tree6c7e019b0d4174260690d084c2aba68b03c10640 /mkarchroot
parentc57284e053c81bdc202e360f26444800b9fc2695 (diff)
downloaddevtools32-1febb47b2c689ffec7b936885ab8dd36fc24b18b.tar.xz
Edit /etc/locale.gen instead of overwrite.
I need this for archiso, instead of maintaining a private copy. Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
Diffstat (limited to 'mkarchroot')
-rwxr-xr-xmkarchroot2
1 files changed, 1 insertions, 1 deletions
diff --git a/mkarchroot b/mkarchroot
index 5b6be88..8e74c54 100755
--- a/mkarchroot
+++ b/mkarchroot
@@ -220,7 +220,7 @@ else
fi
if [ -e "${working_dir}/etc/locale.gen" ]; then
- echo -e 'en_US.UTF-8 UTF-8\nde_DE.UTF-8 UTF-8' > "${working_dir}/etc/locale.gen"
+ sed -i 's@^#\(en_US\|de_DE\)\(\.UTF-8\)@\1\2@' "${working_dir}/etc/locale.gen"
chroot "${working_dir}" locale-gen
fi