From 6ee7a116c26511a47fb7ba5c7e629eb28576bd58 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Fri, 26 Jun 2009 13:01:23 +0100 Subject: [PATCH] No more "cwd doesn't exist" messages --- bin/brew | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/brew b/bin/brew index 29058a0007..570ad265d3 100755 --- a/bin/brew +++ b/bin/brew @@ -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