utils/gems: silence bundle check output.

This commit is contained in:
Mike McQuaid 2019-02-21 15:42:12 +00:00
parent 6b326f4465
commit 3a2259c271
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -63,7 +63,7 @@ module Homebrew
ENV["BUNDLE_GEMFILE"] = "#{ENV["HOMEBREW_LIBRARY"]}/Homebrew/Gemfile" ENV["BUNDLE_GEMFILE"] = "#{ENV["HOMEBREW_LIBRARY"]}/Homebrew/Gemfile"
@bundle_installed ||= begin @bundle_installed ||= begin
bundle_check_output = `#{Gem.bindir}/bundle check` bundle_check_output = `#{Gem.bindir}/bundle check 2>&1`
bundle_check_failed = !$CHILD_STATUS.exitstatus.zero? bundle_check_failed = !$CHILD_STATUS.exitstatus.zero?
# for some reason sometimes the exit code lies so check the output too. # for some reason sometimes the exit code lies so check the output too.