utils/ruby: set HOMEBREW_BOOTSNAP_GEM_PATH after Ruby install.

This should ensure it's set to the correct path.
This commit is contained in:
Mike McQuaid 2025-04-07 16:55:20 +01:00
parent 568b707bc9
commit 020a30caa7
No known key found for this signature in database

View File

@ -127,15 +127,15 @@ If there's no Homebrew Portable Ruby available for your processor:
if [[ -x "${vendor_ruby_path}" ]] if [[ -x "${vendor_ruby_path}" ]]
then then
HOMEBREW_RUBY_PATH="${vendor_ruby_path}" HOMEBREW_RUBY_PATH="${vendor_ruby_path}"
HOMEBREW_BOOTSNAP_GEM_PATH="$(
shopt -s nullglob
echo "${vendor_ruby_root}"/lib/ruby/gems/*/gems/bootsnap-*/lib/bootsnap 2>/dev/null
)"
TERMINFO_DIRS="${vendor_ruby_terminfo}" TERMINFO_DIRS="${vendor_ruby_terminfo}"
if [[ "${vendor_ruby_current_version}" != "${HOMEBREW_PORTABLE_RUBY_VERSION}" ]] if [[ "${vendor_ruby_current_version}" != "${HOMEBREW_PORTABLE_RUBY_VERSION}" ]]
then then
brew vendor-install ruby || odie "${upgrade_fail}" brew vendor-install ruby || odie "${upgrade_fail}"
fi fi
HOMEBREW_BOOTSNAP_GEM_PATH="$(
shopt -s nullglob
echo "${vendor_ruby_root}"/lib/ruby/gems/*/gems/bootsnap-*/lib/bootsnap 2>/dev/null
)"
else else
if system_ruby_supported if system_ruby_supported
then then