Skip to content

Commit 58df019

Browse files
authored
Merge pull request #19716 from Homebrew/move_homebrew_bootsnap_gem_path
utils/ruby: set HOMEBREW_BOOTSNAP_GEM_PATH after Ruby install.
2 parents 25214f1 + 020a30c commit 58df019

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Library/Homebrew/utils/ruby.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,15 +127,15 @@ If there's no Homebrew Portable Ruby available for your processor:
127127
if [[ -x "${vendor_ruby_path}" ]]
128128
then
129129
HOMEBREW_RUBY_PATH="${vendor_ruby_path}"
130-
HOMEBREW_BOOTSNAP_GEM_PATH="$(
131-
shopt -s nullglob
132-
echo "${vendor_ruby_root}"/lib/ruby/gems/*/gems/bootsnap-*/lib/bootsnap 2>/dev/null
133-
)"
134130
TERMINFO_DIRS="${vendor_ruby_terminfo}"
135131
if [[ "${vendor_ruby_current_version}" != "${HOMEBREW_PORTABLE_RUBY_VERSION}" ]]
136132
then
137133
brew vendor-install ruby || odie "${upgrade_fail}"
138134
fi
135+
HOMEBREW_BOOTSNAP_GEM_PATH="$(
136+
shopt -s nullglob
137+
echo "${vendor_ruby_root}"/lib/ruby/gems/*/gems/bootsnap-*/lib/bootsnap 2>/dev/null
138+
)"
139139
else
140140
if system_ruby_supported
141141
then

0 commit comments

Comments
 (0)