Skip to content

A platform for community discussion. Free, open, simple.

Fix missing quotes in unicorn_launcher.

Guo Xiang Tanda39a310c3d8
diff --git a/config/unicorn_launcher b/config/unicorn_launcher
index 2014f0284ea..0aec686d2d4 100755
--- a/config/unicorn_launcher
+++ b/config/unicorn_launcher
@@ -31,7 +31,7 @@ function on_reload()
done
count=0
- while [ "$count" -lt 30 -a -z $(ps -f --ppid $NEW_UNICORN_PID | grep worker | head -1 | awk '{ print $2 }') ]; do
+ while [ "$count" -lt 30 -a -z "$(ps -f --ppid $NEW_UNICORN_PID | grep worker | head -1 | awk '{ print $2 }')" ]; do
log "Waiting for new unicorn workers under $NEW_UNICORN_PID to start up..."
count=$((count+1))
sleep 1