From 89479912ecbfe343a7d002c9b71d2359cc1cbde2 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Sun, 3 Jan 2010 02:59:16 +0000 Subject: [PATCH] Use full path to du Fixes Homebrew/homebrew#354 --- Library/Homebrew/extend/pathname.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb index 36aaa31fbf..eaac2ee682 100644 --- a/Library/Homebrew/extend/pathname.rb +++ b/Library/Homebrew/extend/pathname.rb @@ -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