Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2014-09-08 16:25:20 +0400
committerJacob Vosmaer <contact@jacobvosmaer.nl>2014-09-08 16:28:42 +0400
commit59d2f6db757e42a9a0db02c01852de2d53847191 (patch)
treeaf68eaf85aa6d6ea43d2ea753638ef0c51865165 /bin/background_jobs
parent9d0614edbbcb5628e4d1b1424f7a426006e80c73 (diff)
Wrap arguments for `[ -z` in double quotes
Diffstat (limited to 'bin/background_jobs')
-rwxr-xr-xbin/background_jobs2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/background_jobs b/bin/background_jobs
index b58cdce4f9f..d6576291609 100755
--- a/bin/background_jobs
+++ b/bin/background_jobs
@@ -43,7 +43,7 @@ start_sidekiq()
load_ok()
{
sidekiq_pid=$(cat $sidekiq_pidfile)
- if [ -z $sidekiq_pid ] ; then
+ if [ -z "$sidekiq_pid" ] ; then
warn "Could not find a PID in $sidekiq_pidfile"
exit 0
fi