diff options
author | Micah Anderson <micah@riseup.net> | 2016-11-21 21:58:09 -0500 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2016-11-22 09:29:16 -0500 |
commit | c641fe08f26dce1c06ed61dc2d5a8b75486807fe (patch) | |
tree | 37ec2d052db342f73d374336fb85140bc2230e40 /bin | |
parent | 842087d4640f691aee08ec5a011dfb397b569dde (diff) |
Ignore non-existing locale.gen on init (#8649)
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/node_init | 2 |
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 |