Merge pull request #19357 from Homebrew/relocatable-check-prefix

dev-cmd/bottle: check for prefix when not /usr/local
This commit is contained in:
Mike McQuaid 2025-02-24 08:56:34 +00:00 committed by GitHub
commit ce5733eec3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -559,7 +559,7 @@ module Homebrew
ohai "Detecting if #{local_filename} is relocatable..." if bottle_path.size > 1 * 1024 * 1024 ohai "Detecting if #{local_filename} is relocatable..." if bottle_path.size > 1 * 1024 * 1024
prefix_check = if Homebrew.default_prefix?(prefix) prefix_check = if prefix == HOMEBREW_DEFAULT_PREFIX
File.join(prefix, "opt") File.join(prefix, "opt")
else else
prefix prefix