small code cleanup testing if the utf8 locale is installed

This commit is contained in:
Joshua Tauberer 2018-08-24 08:48:09 -04:00
parent cb162da5fe
commit 180b054dbc
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ source setup/preflight.sh
# Python may not be able to read/write files. This is also
# in the management daemon startup script and the cron script.
if [ -z `locale -a | grep en_US.utf8` ]; then
if ! locale -a | grep en_US.utf8 > /dev/null; then
# Generate locale if not exists
hide_output locale-gen en_US.UTF-8
fi