pathname: prune unnecessary whitespace
Closes Homebrew/homebrew#38413. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
45c9e84c15
commit
2fa87369b3
@ -402,7 +402,7 @@ class Pathname
|
|||||||
out = ""
|
out = ""
|
||||||
n = Utils.popen_read("find", expand_path.to_s, "-type", "f", "!", "-name", ".DS_Store").split("\n").size
|
n = Utils.popen_read("find", expand_path.to_s, "-type", "f", "!", "-name", ".DS_Store").split("\n").size
|
||||||
out << "#{n} files, " if n > 1
|
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
|
out
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user