Wrap arguments for `[ -z` in double quotes
This commit is contained in:
parent
9d0614edbb
commit
59d2f6db75
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue