Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
59d2f6db
Commit
59d2f6db
authored
Sep 08, 2014
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wrap arguments for `[ -z` in double quotes
parent
9d0614ed
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
bin/background_jobs
bin/background_jobs
+1
-1
bin/web
bin/web
+1
-1
No files found.
bin/background_jobs
View file @
59d2f6db
...
@@ -43,7 +43,7 @@ start_sidekiq()
...
@@ -43,7 +43,7 @@ start_sidekiq()
load_ok
()
load_ok
()
{
{
sidekiq_pid
=
$(
cat
$sidekiq_pidfile
)
sidekiq_pid
=
$(
cat
$sidekiq_pidfile
)
if
[
-z
$sidekiq_pid
]
;
then
if
[
-z
"
$sidekiq_pid
"
]
;
then
warn
"Could not find a PID in
$sidekiq_pidfile
"
warn
"Could not find a PID in
$sidekiq_pidfile
"
exit
0
exit
0
fi
fi
...
...
bin/web
View file @
59d2f6db
...
@@ -9,7 +9,7 @@ unicorn_config="$app_root/config/unicorn.rb"
...
@@ -9,7 +9,7 @@ unicorn_config="$app_root/config/unicorn.rb"
get_unicorn_pid
()
get_unicorn_pid
()
{
{
local
pid
=
$(
cat
$unicorn_pidfile
)
local
pid
=
$(
cat
$unicorn_pidfile
)
if
[
-z
$pid
]
;
then
if
[
-z
"
$pid
"
]
;
then
echo
"Could not find a PID in
$unicorn_pidfile
"
echo
"Could not find a PID in
$unicorn_pidfile
"
exit
1
exit
1
fi
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment