From 07eca289d314414a7bf96ee263d81c1455d9bc7a Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Fri, 5 Oct 2018 12:18:20 +0800 Subject: [PATCH] Fix invalid bash syntax. --- config/unicorn_launcher | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/unicorn_launcher b/config/unicorn_launcher index b35a811c86d..2014f0284ea 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