Skip to content
Snippets Groups Projects
Unverified Commit 1cba5821 authored by Maxim Belkin's avatar Maxim Belkin
Browse files

cmd/update.sh: define conditions for unsetting HOMEBREW_RUBY_PATH

parent 9124e07b
No related branches found
No related tags found
No related merge requests found
......@@ -599,6 +599,13 @@ EOS
-d "$HOMEBREW_LIBRARY/LinkedKegs" ||
(-n "$HOMEBREW_DEVELOPER" && -z "$HOMEBREW_UPDATE_PREINSTALL") ]]
then
if [[ -n $HOMEBREW_FORCE_VENDOR_RUBY &&
-x $HOMEBREW_LIBRARY/Homebrew/vendor/portable-ruby/current/bin/ruby ]]
then
export HOMEBREW_RUBY_PATH="$HOMEBREW_LIBRARY/Homebrew/vendor/portable-ruby/current/bin/ruby"
elif [[ -z $HOMEBREW_DEVELOPER ]]; then
unset HOMEBREW_RUBY_PATH
fi
brew update-report "$@"
return $?
elif [[ -z "$HOMEBREW_UPDATE_PREINSTALL" ]]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment