Skip to content

Commit

Permalink
Merge pull request #16047 from Bo98/bundle-stderr
Browse files Browse the repository at this point in the history
utils/gems: redirect bundler output to stderr
  • Loading branch information
Bo98 authored Sep 27, 2023
2 parents 4ec5f04 + 22cb5db commit 7d3edd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Library/Homebrew/utils/gems.rb
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def install_bundler_gems!(only_warn_on_failure: false, setup_path: true, groups:
end

bundle_installed = if bundle_install_required
if system bundle, "install"
if system bundle, "install", out: :err
true
else
message = <<~EOS
Expand All @@ -313,7 +313,7 @@ def install_bundler_gems!(only_warn_on_failure: false, setup_path: true, groups:
end
false
end
elsif system bundle, "clean" # even if we have nothing to install, we may have removed gems
elsif system bundle, "clean", out: :err # even if we have nothing to install, we may have removed gems
true
else
message = <<~EOS
Expand Down

0 comments on commit 7d3edd5

Please sign in to comment.