mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-12 06:06:05 +10:00
Catch missing commands in rake tasks with ''
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user