From a09799f25a602f3664ac8c6fcae97b20fc48a685 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 19 Sep 2016 09:17:35 +0100 Subject: [PATCH] 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). --- Library/Homebrew/os/mac.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/os/mac.rb b/Library/Homebrew/os/mac.rb index c6fb9b7215..f9bf2e8786 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?