Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2014-03-10 21:14:59 +0400
committerJacob Vosmaer <contact@jacobvosmaer.nl>2014-03-10 21:14:59 +0400
commitad71eca8bbaeccc6e67d977c8d7c2deb324f123d (patch)
tree7206c0870130b5477c31b380226a19e23582b5cd /lib
parent322a8f1d6d98795e9a60fce005350f0e9dcd8660 (diff)
Catch missing commands in rake tasks with ''
Diffstat (limited to 'lib')
-rw-r--r--lib/tasks/gitlab/task_helpers.rake2
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)