default_prefix: set macOS default prefix on Linux if simulating it

This commit is contained in:
Dawid Dziurla 2021-06-26 15:45:51 +02:00
parent 196ec61a3a
commit 02a4670ed1
No known key found for this signature in database
GPG Key ID: 7B6D8368172E9B0B

View File

@ -4,7 +4,7 @@
module Homebrew
DEFAULT_PREFIX, DEFAULT_REPOSITORY = if OS.mac? && Hardware::CPU.arm?
[HOMEBREW_MACOS_ARM_DEFAULT_PREFIX, HOMEBREW_MACOS_ARM_DEFAULT_REPOSITORY]
elsif OS.linux? && !EnvConfig.force_homebrew_on_linux?
elsif OS.linux? && !EnvConfig.simulate_macos_on_linux?
[HOMEBREW_LINUX_DEFAULT_PREFIX, HOMEBREW_LINUX_DEFAULT_REPOSITORY]
else
[HOMEBREW_DEFAULT_PREFIX, HOMEBREW_DEFAULT_REPOSITORY]