diff options
| author | Mike McQuaid | 2012-03-16 15:14:20 +1300 |
|---|---|---|
| committer | Mike McQuaid | 2012-03-18 15:43:39 +1300 |
| commit | 9c16145d8c22e856ef7dca0ebcfca9519392687a (patch) | |
| tree | dd382b96e56444a9c2b8ed8520c80e629d60998f /bin | |
| parent | b27b761931b987b9dd8a9fc080bbf35270af7cca (diff) | |
| download | homebrew-9c16145d8c22e856ef7dca0ebcfca9519392687a.tar.bz2 | |
Set MACOS_VERSION as 0 on non-OSX platforms.
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/brew | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |
