diff options
author | Jimmy Miller <jimmy.miller@shopify.com> | 2022-12-14 00:59:21 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-13 21:59:21 -0800 |
commit | 2d5b723b2f69dda8c7cf0de69c25e16a1818b88c (patch) | |
tree | 82ab9e9a41ab79e525805ae2915aea3b1e173a97 | |
parent | a7cf39bba859f5b31ec2e5c7e9c2993d31c6e154 (diff) | |
download | ruby-2d5b723b2f69dda8c7cf0de69c25e16a1818b88c.tar.gz |
Fix build when enable_shared is on (#6924)
Before this change, if enable_shared was true, the directory would have a suffix of -static and be deleted on each make install. This would cause a second make install to fail.
-rwxr-xr-x | tool/outdate-bundled-gems.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/outdate-bundled-gems.rb b/tool/outdate-bundled-gems.rb index 10c182d837..3c519cc461 100755 --- a/tool/outdate-bundled-gems.rb +++ b/tool/outdate-bundled-gems.rb @@ -111,7 +111,7 @@ end version = RbConfig::CONFIG['ruby_version'] curdir.glob(".bundle/{extensions,.timestamp}/#{platform}/*/") do |dir| - unless File.basename(dir) == version + unless File.basename(dir).start_with?(version) curdir.rmdir(dir) end end |