From 7a24fc4a7abadd2ffd9ddc62741fa8a5fc090e10 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Fri, 26 Jun 2009 13:01:23 +0100 Subject: No more "cwd doesn't exist" messages --- bin/brew | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/brew b/bin/brew index 29058a000..570ad265d 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 -- cgit v1.2.3