From ce00a94737dd146e0b7456af2f2857a0ce85bf08 Mon Sep 17 00:00:00 2001 From: Cheng XU Date: Tue, 16 Jul 2019 18:41:37 +0800 Subject: [PATCH] remove extra command output when running brew list -v `brew list -v ` is used to list all files inside formula's keg. However since 70b93f65eab70cd84d221059a2864a52202df141, an extra `find /usr/local/Cellar// -not -type d -print` will be printed out. Fix the problem by using `system_command!` instead of `safe_system`. --- Library/Homebrew/cmd/list.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/list.rb b/Library/Homebrew/cmd/list.rb index a1bde5c4d7..ed088f0e8d 100644 --- a/Library/Homebrew/cmd/list.rb +++ b/Library/Homebrew/cmd/list.rb @@ -71,7 +71,7 @@ module Homebrew safe_system "ls", *ARGV.options_only << HOMEBREW_CELLAR end elsif args.verbose? || !$stdout.tty? - safe_system "find", *ARGV.kegs.map(&:to_s) + %w[-not -type d -print] + system_command! "find", args: ARGV.kegs.map(&:to_s) + %w[-not -type d -print], print_stdout: true else ARGV.kegs.each { |keg| PrettyListing.new keg } end