aboutsummaryrefslogtreecommitdiffstats
path: root/bin/brew
diff options
context:
space:
mode:
Diffstat (limited to 'bin/brew')
-rwxr-xr-xbin/brew3
1 files changed, 3 insertions, 0 deletions
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