Commit 92a928468feeb7b7565ee348fd7c83a84fe16381

Authored by Dmitriy Zaporozhets
2 parents d55ee139 ad71eca8

Merge branch 'catch_missing_command' into 'master'

Catch missing commands in Rake tasks
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)