Commit ad71eca8bbaeccc6e67d977c8d7c2deb324f123d
1 parent
322a8f1d
Exists in
spb-stable
and in
3 other branches
Catch missing commands in rake tasks with ''
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
lib/tasks/gitlab/task_helpers.rake
@@ -82,6 +82,8 @@ namespace :gitlab do | @@ -82,6 +82,8 @@ namespace :gitlab do | ||
82 | def run(command) | 82 | def run(command) |
83 | output, _ = Gitlab::Popen.popen(command) | 83 | output, _ = Gitlab::Popen.popen(command) |
84 | output | 84 | output |
85 | + rescue Errno::ENOENT | ||
86 | + '' # if the command does not exist, return an empty string | ||
85 | end | 87 | end |
86 | 88 | ||
87 | def uid_for(user_name) | 89 | def uid_for(user_name) |