aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorBen Alpert2009-08-31 18:04:09 -0600
committerMax Howell2009-09-01 10:35:07 +0100
commit8b64f33eb2b06180bb28c58bcedd3e908d64415b (patch)
tree0300a532df5f77b0b319f28734ae6e4084496b60 /bin
parent2ff0294e189596c86f09de68d0a23141595cd677 (diff)
downloadbrew-8b64f33eb2b06180bb28c58bcedd3e908d64415b.tar.bz2
Fix brew when using sudo
The PWD environment variable is apparently not set for root. Signed Off By: Max Howell <max@methylblue.com> 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.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/brew3
1 files changed, 0 insertions, 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