From 8dcc5fafef6a53b7375bb62e848ab3db12e7cf2d Mon Sep 17 00:00:00 2001
From: Jan Berdajs <mrbrdo@gmail.com>
Date: Sat, 25 Apr 2015 16:20:08 +0200
Subject: [PATCH] fix broken output of script/server

---
 script/server | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/script/server b/script/server
index d99c33056a..1039c674ba 100755
--- a/script/server
+++ b/script/server
@@ -120,7 +120,7 @@ then
 fi
 
 # Check if assets are precompiled
-if [ "$RAILS_ENV" = "production" -a -z "$(find public/assets -maxdepth 1 -name 'home-*.css' -print -quit)" ]
+if [ "$RAILS_ENV" = "production" -a -z "$(find public/assets -maxdepth 1 -name 'home-*.css' -print -quit 2>/dev/null)" ]
 then
   fatal "You're running in production mode without having assets
 precompiled. Now and after each update before you restart the
@@ -159,7 +159,7 @@ diaspora.yml.example
 fi
 
 # Start Diaspora
-echo -n "Starting Diaspora in $RAILS_ENV mode on port $port "
+printf "Starting Diaspora in $RAILS_ENV mode on port $port "
 if [ "$embed_sidekiq_worker" = "true" ]
 then
   echo "with a Sidekiq worker embedded into Unicorn."
-- 
GitLab