utils/gems: run bundle clean when install not required

This commit is contained in:
Bo Anderson 2023-04-24 15:46:30 +01:00
parent 6429e27557
commit e6c188affe
No known key found for this signature in database
GPG Key ID: 3DB94E204E137D65

View File

@ -194,8 +194,18 @@ module Homebrew
end
false
end
else
elsif system bundle, "clean" # even if we have nothing to install, we may have removed gems
true
else
message = <<~EOS
failed to run `#{bundle} clean`!
EOS
if only_warn_on_failure
opoo_if_defined message
else
odie_if_defined message
end
false
end
if bundle_installed