No more "cwd doesn't exist" messages

This commit is contained in:
Max Howell 2009-06-26 13:01:23 +01:00
parent 3fa628e7b1
commit 6ee7a116c2

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