From 8b64f33eb2b06180bb28c58bcedd3e908d64415b Mon Sep 17 00:00:00 2001 From: Ben Alpert Date: Mon, 31 Aug 2009 18:04:09 -0600 Subject: Fix brew when using sudo The PWD environment variable is apparently not set for root. Signed Off By: Max Howell I removed the Dir.chdir line altogether as it was a hacky solution to an issue in Ruby that I encountered a lot during early development, ie. I'd brew rm while working directory was set to that keg. --- bin/brew | 3 --- 1 file changed, 3 deletions(-) diff --git a/bin/brew b/bin/brew index 79545b4ac..8f38975ae 100755 --- a/bin/brew +++ b/bin/brew @@ -32,9 +32,6 @@ if `sw_vers -productVersion` =~ /10\.(\d)\.(\d+)/ and $1.to_i < 5 abort "But thanks for your interest anyway!" end -# Pathname often throws if CWD doesn't exist -Dir.chdir '/' unless File.directory? ENV['PWD'] - begin case ARGV.shift -- cgit v1.2.3