diff options
| author | Ben Alpert | 2009-08-31 18:04:09 -0600 |
|---|---|---|
| committer | Max Howell | 2009-09-01 10:35:07 +0100 |
| commit | 8b64f33eb2b06180bb28c58bcedd3e908d64415b (patch) | |
| tree | 0300a532df5f77b0b319f28734ae6e4084496b60 /bin | |
| parent | 2ff0294e189596c86f09de68d0a23141595cd677 (diff) | |
| download | brew-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-x | bin/brew | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -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 |
