提交 ad71eca8 编写于 作者: J Jacob Vosmaer

Catch missing commands in rake tasks with ''

上级 322a8f1d
...@@ -82,6 +82,8 @@ namespace :gitlab do ...@@ -82,6 +82,8 @@ namespace :gitlab do
def run(command) def run(command)
output, _ = Gitlab::Popen.popen(command) output, _ = Gitlab::Popen.popen(command)
output output
rescue Errno::ENOENT
'' # if the command does not exist, return an empty string
end end
def uid_for(user_name) def uid_for(user_name)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册