Merge pull request #5593 from MikeMcQuaid/missing-env-var-exception

brew.rb: duplicate MissingEnvironmentVariables exception.
This commit is contained in:
Mike McQuaid 2019-01-23 19:10:54 +00:00 committed by GitHub
commit b221a46af2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,6 +10,9 @@ if RUBY_X < 2 || (RUBY_X == 2 && RUBY_Y < 3)
raise "Homebrew must be run under Ruby 2.3! You're running #{RUBY_VERSION}."
end
# Also define here so we can rescue regardless of location.
class MissingEnvironmentVariables < RuntimeError; end
begin
require_relative "global"
rescue MissingEnvironmentVariables => e