From 180b054dbcafa6ee6b57151f01291e24f919327a Mon Sep 17 00:00:00 2001 From: Joshua Tauberer Date: Fri, 24 Aug 2018 08:48:09 -0400 Subject: [PATCH] small code cleanup testing if the utf8 locale is installed --- setup/start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/start.sh b/setup/start.sh index b13e80ca..02e77d96 100755 --- a/setup/start.sh +++ b/setup/start.sh @@ -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