Commit 92a92846 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge branch 'catch_missing_command' into 'master'

Catch missing commands in Rake tasks
parents d55ee139 ad71eca8
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment