summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorJimmy Miller <jimmy.miller@shopify.com>2022-12-14 00:59:21 -0500
committerGitHub <noreply@github.com>2022-12-13 21:59:21 -0800
commit2d5b723b2f69dda8c7cf0de69c25e16a1818b88c (patch)
tree82ab9e9a41ab79e525805ae2915aea3b1e173a97 /tool
parenta7cf39bba859f5b31ec2e5c7e9c2993d31c6e154 (diff)
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.
Notes
Notes: Merged-By: k0kubun <takashikkbn@gmail.com>
Diffstat (limited to 'tool')
-rwxr-xr-xtool/outdate-bundled-gems.rb2
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