From ad71eca8bbaeccc6e67d977c8d7c2deb324f123d Mon Sep 17 00:00:00 2001 From: Jacob Vosmaer Date: Mon, 10 Mar 2014 18:14:59 +0100 Subject: [PATCH] Catch missing commands in rake tasks with '' --- lib/tasks/gitlab/task_helpers.rake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/tasks/gitlab/task_helpers.rake b/lib/tasks/gitlab/task_helpers.rake index d36b9682850..da61c6e007f 100644 --- a/lib/tasks/gitlab/task_helpers.rake +++ b/lib/tasks/gitlab/task_helpers.rake @@ -82,6 +82,8 @@ namespace :gitlab do def run(command) output, _ = Gitlab::Popen.popen(command) output + rescue Errno::ENOENT + '' # if the command does not exist, return an empty string end def uid_for(user_name) -- GitLab