From 073bdf8e41e140959775bc9d91c1e15b8f64f6ed Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Thu, 1 Aug 2024 18:32:16 -0400 Subject: [PATCH] ruby: fix postinstall Signed-off-by: Rui Chen --- Formula/r/ruby.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/r/ruby.rb b/Formula/r/ruby.rb index e6f537cea6b96..6aa99cf916a0c 100644 --- a/Formula/r/ruby.rb +++ b/Formula/r/ruby.rb @@ -156,7 +156,7 @@ def post_install rm(%W[ #{rubygems_bindir}/bundle #{rubygems_bindir}/bundler - ]) + ].select { |file| File.exist?(file) }) rm_r(Dir[HOMEBREW_PREFIX/"lib/ruby/gems/#{api_version}/gems/bundler-*"]) rubygems_bindir.install_symlink Dir[libexec/"gembin/*"]