Skip to content
Snippets Groups Projects
Commit 179ef2bf authored by Mike McQuaid's avatar Mike McQuaid
Browse files

global: raise unless Ruby 2.

parent 0dc2beef
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,7 @@ else
end
RUBY_BIN = RUBY_PATH.dirname
RUBY_TWO = RUBY_VERSION.split(".").first.to_i >= 2
raise "Homebrew must be run under Ruby 2!" unless RUBY_TWO
HOMEBREW_USER_AGENT_CURL = ENV["HOMEBREW_USER_AGENT_CURL"]
HOMEBREW_USER_AGENT_RUBY = "#{ENV["HOMEBREW_USER_AGENT"]} ruby/#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment