diff options
author | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2014-03-10 21:14:59 +0400 |
---|---|---|
committer | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2014-03-10 21:14:59 +0400 |
commit | ad71eca8bbaeccc6e67d977c8d7c2deb324f123d (patch) | |
tree | 7206c0870130b5477c31b380226a19e23582b5cd /lib | |
parent | 322a8f1d6d98795e9a60fce005350f0e9dcd8660 (diff) |
Catch missing commands in rake tasks with ''
Diffstat (limited to 'lib')
-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) |