summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2016-11-21 21:58:09 -0500
committerMicah Anderson <micah@riseup.net>2016-11-22 09:29:16 -0500
commitc641fe08f26dce1c06ed61dc2d5a8b75486807fe (patch)
tree37ec2d052db342f73d374336fb85140bc2230e40 /bin
parent842087d4640f691aee08ec5a011dfb397b569dde (diff)
Ignore non-existing locale.gen on init (#8649)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/node_init2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/node_init b/bin/node_init
index b55cfed3..148ecc34 100755
--- a/bin/node_init
+++ b/bin/node_init
@@ -22,7 +22,7 @@ if ! egrep -q "$DEBIAN_VERSION" /etc/debian_version; then
exit 1
fi
mkdir -p $LEAP_DIR
-if ! grep -q -e '^en_US.UTF-8' /etc/locale.gen; then
+if ! grep -q -e '^en_US.UTF-8' /etc/locale.gen 2> /dev/null; then
echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
/usr/sbin/locale-gen
fi