aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/os.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/os.rb')
-rw-r--r--Library/Homebrew/os.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/os.rb b/Library/Homebrew/os.rb
index 1b8ed7b8e..b0d685fa4 100644
--- a/Library/Homebrew/os.rb
+++ b/Library/Homebrew/os.rb
@@ -7,6 +7,8 @@ module OS
/linux/i === RUBY_PLATFORM
end
+ ::OS_VERSION = ENV["HOMEBREW_OS_VERSION"]
+
if OS.mac?
require "os/mac"
ISSUES_URL = "https://git.io/brew-troubleshooting"
@@ -14,13 +16,11 @@ module OS
# compatibility
::MACOS_FULL_VERSION = OS::Mac.full_version.to_s
::MACOS_VERSION = OS::Mac.version.to_s
- ::OS_VERSION = "OS X #{MACOS_FULL_VERSION}"
elsif OS.linux?
ISSUES_URL = "https://github.com/Homebrew/linuxbrew/wiki/troubleshooting"
PATH_OPEN = "xdg-open"
# compatibility
::MACOS_FULL_VERSION = ::MACOS_VERSION = "0"
- ::OS_VERSION = RUBY_PLATFORM
else
raise "Unknown operating system"
end