Don't install bottles in non-default HOMEBREW_PREFIX.
This commit is contained in:
parent
733e280e61
commit
9289c06299
@ -64,7 +64,8 @@ module HomebrewArgvExtension
|
||||
end
|
||||
|
||||
def build_from_source?
|
||||
return true if flag? '--build-from-source' or ENV['HOMEBREW_BUILD_FROM_SOURCE'] or not MacOS.lion?
|
||||
return true if flag? '--build-from-source' or ENV['HOMEBREW_BUILD_FROM_SOURCE'] \
|
||||
or not MacOS.lion? or HOMEBREW_PREFIX.to_s != '/usr/local'
|
||||
options = options_only
|
||||
options.delete '--universal'
|
||||
not options.empty?
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user