brew.rb: duplicate MissingEnvironmentVariables exception.

Fixes #5592.
This commit is contained in:
Mike McQuaid 2019-01-23 15:40:44 +00:00
parent 193af1442f
commit 57d7d4c9dd
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

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