aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMike McQuaid2016-09-19 09:17:35 +0100
committerMike McQuaid2016-09-19 09:17:35 +0100
commita09799f25a602f3664ac8c6fcae97b20fc48a685 (patch)
tree13e4531dc3c3faaf848b01c3295b95d6c8685ad2 /Library/Homebrew
parent6e1312d4a19468645889abca9a9a5a1c1e49c013 (diff)
downloadbrew-a09799f25a602f3664ac8c6fcae97b20fc48a685.tar.bz2
os/mac: fall back to old environment.
Can't see how this could ever happen but let's safe-guard it just in case (as ilovezfs saw it).
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/os/mac.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/os/mac.rb b/Library/Homebrew/os/mac.rb
index c6fb9b721..f9bf2e878 100644
--- a/Library/Homebrew/os/mac.rb
+++ b/Library/Homebrew/os/mac.rb
@@ -24,7 +24,7 @@ module OS
# This can be compared to numerics, strings, or symbols
# using the standard Ruby Comparable methods.
def full_version
- @full_version ||= Version.new(ENV["HOMEBREW_MACOS_VERSION"].chomp)
+ @full_version ||= Version.new((ENV["HOMEBREW_MACOS_VERSION"] || ENV["HOMEBREW_OSX_VERSION"]).chomp)
end
def prerelease?