aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Howell2009-07-10 00:57:27 +0100
committerMax Howell2009-07-10 00:57:27 +0100
commit61b71486bedacb68cc165d6ab6f33f241e8a9cce (patch)
tree2e1417d6c2ba7e319e920475e83b9ea83ed61f34
parent636871e2d425e13bf1292c9cd409a45fd435c56f (diff)
downloadhomebrew-61b71486bedacb68cc165d6ab6f33f241e8a9cce.tar.bz2
Work even if the working directory doesn't exist
-rwxr-xr-xbin/brew2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/brew b/bin/brew
index 239d0d36b..fd187b99f 100755
--- a/bin/brew
+++ b/bin/brew
@@ -6,7 +6,7 @@ $:.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
+Dir.chdir '/' unless File.directory? ENV['PWD']
def prune
n=0