No more "cwd doesn't exist" messages

This commit is contained in:
Max Howell committed 2009-06-26 13:01:23 +01:00
1 parent b90a8a4f73
commit 7a24fc4a7a
1 file changed
+3
+3
View File
@@ -5,6 +5,9 @@ require 'pathname'
$:.unshift Pathname.new(__FILE__).dirname.parent.realpath+'Library'+'Homebrew'
require 'env'
# often causes Ruby to throw exception ffs
Dir.chdir '/' unless File.exist? Dir.getwd
def prune
n=0
dirs=Array.new