diff options
| author | Misty De Meo | 2014-02-21 15:43:32 -0800 |
|---|---|---|
| committer | Misty De Meo | 2014-02-21 20:54:23 -0800 |
| commit | 5a7a5c3eaed2ea9ae1b1586e8825bfe499fe8600 (patch) | |
| tree | 5c00c9a13a6bbef95443f644f1ec68020bd0c966 /bin | |
| parent | e3e14a0cdfbd0b4bdc4757689055e3e3ee890438 (diff) | |
| download | brew-5a7a5c3eaed2ea9ae1b1586e8825bfe499fe8600.tar.bz2 | |
Unset GEM_HOME and GEM_PATH before running brew.rb
This was reported in Tigerbrew, but is a worthwhile fix everywhere.
Fixes mistydemeo/tigerbrew#177.
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/brew | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -15,6 +15,11 @@ fi BREW_LIBRARY_DIRECTORY=$(cd "$BREW_FILE_DIRECTORY"/../Library && pwd -P) +# Users may have these set, pointing the system Ruby +# at non-system gem paths +unset GEM_HOME +unset GEM_PATH + BREW_SYSTEM=$(uname -s | tr "[:upper:]" "[:lower:]") if [ "$BREW_SYSTEM" = "darwin" ] then |
