Use full path to du

Fixes Homebrew/homebrew#354
This commit is contained in:
Max Howell 2010-01-03 02:59:16 +00:00
parent 8b7b132620
commit 89479912ec

View File

@ -93,7 +93,7 @@ class Pathname
out=''
n=`find #{to_s} -type f | wc -l`.to_i
out<<"#{n} files, " if n > 1
out<<`du -hd0 #{to_s} | cut -d"\t" -f1`.strip
out<<`/usr/bin/du -hd0 #{to_s} | cut -d"\t" -f1`.strip
end
# attempts to retrieve the version component of this path, so generally