ruby.sh: remove linkage cache on upgrade.

This may not be compatible between portable ruby versions and between
portable and system ruby versions.

Fixes #4485.
This commit is contained in:
Mike McQuaid 2018-07-18 14:09:43 +01:00
parent af11c6581a
commit f2d823445e

View File

@ -47,7 +47,7 @@ setup-ruby-path() {
then
odie "Failed to install vendor Ruby."
fi
rm -rf "$vendor_dir/bundle/ruby"
rm -rf "$vendor_dir/bundle/ruby" "$HOMEBREW_CACHE/linkage.db"
HOMEBREW_RUBY_PATH="$vendor_ruby_path"
fi
fi