Skip to content
Snippets Groups Projects
Commit 59d2f6db authored by Jacob Vosmaer's avatar Jacob Vosmaer
Browse files

Wrap arguments for `[ -z` in double quotes

parent 9d0614ed
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
Loading
@@ -9,7 +9,7 @@ unicorn_config="$app_root/config/unicorn.rb"
get_unicorn_pid()
{
local pid=$(cat $unicorn_pidfile)
if [ -z $pid ] ; then
if [ -z "$pid" ] ; then
echo "Could not find a PID in $unicorn_pidfile"
exit 1
fi
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment