Skip to content

Commit

Permalink
fix rvm’s irbrc bug
Browse files Browse the repository at this point in the history
  • Loading branch information
CamJN committed Mar 25, 2024
1 parent ce6de35 commit 32c77a3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions image/ruby_support/finalize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@ source /pd_build/buildconfig
## Remove useless files.
rm -f /usr/local/rvm/rubies/*/lib/libruby-static.a

## Set the latest available Ruby as the default.

known_rubies=`/usr/local/rvm/bin/rvm list strings`

## Fix https://github.com/rvm/rvm/issues/5449
for ver in $known_rubies; do
sed -e 's/require/load/g' -i'' "/usr/local/rvm/rubies/$ver/.irbrc"
done

## Set the latest available Ruby as the default.
function set_rvm_default()
{
local regex="$1"
Expand Down

0 comments on commit 32c77a3

Please sign in to comment.