diff options
| author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-03-10 18:48:31 +0000 |
|---|---|---|
| committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-03-10 18:48:31 +0000 |
| commit | 92a928468feeb7b7565ee348fd7c83a84fe16381 (patch) | |
| tree | d6fdebbbdad8c66bdc2f7f2b9e8cba4a8f4ce74e | |
| parent | d55ee139eb3ed52334ecea2cfd58fe1313ba66f9 (diff) | |
| parent | ad71eca8bbaeccc6e67d977c8d7c2deb324f123d (diff) | |
| download | gitlab-ce-92a928468feeb7b7565ee348fd7c83a84fe16381.tar.gz | |
Merge branch 'catch_missing_command' into 'master'
Catch missing commands in Rake tasks
| -rw-r--r-- | lib/tasks/gitlab/task_helpers.rake | 2 |
1 files changed, 2 insertions, 0 deletions
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) |
