From 2d5b723b2f69dda8c7cf0de69c25e16a1818b88c Mon Sep 17 00:00:00 2001 From: Jimmy Miller Date: Wed, 14 Dec 2022 00:59:21 -0500 Subject: [PATCH] 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. --- tool/outdate-bundled-gems.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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