From 3bdeac364920a7e0346b5aed0395ea7a4842956c Mon Sep 17 00:00:00 2001 From: Max Howell Date: Fri, 10 Jul 2009 00:57:27 +0100 Subject: [PATCH] Work even if the working directory doesn't exist --- bin/brew | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/brew b/bin/brew index 239d0d36b9..fd187b99fb 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