aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominyk Tiller2015-04-07 17:14:18 +0100
committerMike McQuaid2015-04-07 18:32:29 +0100
commit985351f26d882ae82c3aee0dab3064f192f167c8 (patch)
tree66aeac91a4d7eae2caed9249bb50a25adde69577
parenta81082447a8c1456840aaa2c98cb2bc6aa27f23f (diff)
downloadhomebrew-985351f26d882ae82c3aee0dab3064f192f167c8.tar.bz2
pathname: prune unnecessary whitespace
Closes #38413. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
-rw-r--r--Library/Homebrew/extend/pathname.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb
index 49adae2d1..1e80e3e84 100644
--- a/Library/Homebrew/extend/pathname.rb
+++ b/Library/Homebrew/extend/pathname.rb
@@ -402,7 +402,7 @@ class Pathname
out = ""
n = Utils.popen_read("find", expand_path.to_s, "-type", "f", "!", "-name", ".DS_Store").split("\n").size
out << "#{n} files, " if n > 1
- out << Utils.popen_read("/usr/bin/du", "-hs", expand_path.to_s).split("\t")[0]
+ out << Utils.popen_read("/usr/bin/du", "-hs", expand_path.to_s).split("\t")[0].strip
out
end