Merge branch 'catch_missing_command' into 'master'
Catch missing commands in Rake tasks
This commit is contained in:
commit
92a928468f
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue