From 9c16145d8c22e856ef7dca0ebcfca9519392687a Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Fri, 16 Mar 2012 15:14:20 +1300 Subject: Set MACOS_VERSION as 0 on non-OSX platforms. --- bin/brew | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/brew b/bin/brew index ba573c658..df0c45d4f 100755 --- a/bin/brew +++ b/bin/brew @@ -31,7 +31,7 @@ case HOMEBREW_PREFIX.to_s when '/', '/usr' # it may work, but I only see pain this route and don't want to support it abort "Cowardly refusing to continue at this prefix: #{HOMEBREW_PREFIX}" end -if MACOS_VERSION < 10.5 +if MACOS and MACOS_VERSION < 10.5 abort <<-EOABORT.undent Homebrew requires Leopard or higher. For Tiger support, see: http://github.com/sceaga/homebrew/tree/tiger @@ -72,7 +72,7 @@ begin # Add example external commands to PATH before checking. ENV['PATH'] += ":#{HOMEBREW_REPOSITORY}/Library/Contributions/cmds" - if system "/usr/bin/which -s brew-#{cmd}" + if which_s "brew-#{cmd}" %w[CACHE CELLAR LIBRARY_PATH PREFIX REPOSITORY].each do |e| ENV["HOMEBREW_#{e}"] = Object.const_get "HOMEBREW_#{e}" end -- cgit v1.2.3