aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/brew.sh
diff options
context:
space:
mode:
authorMike McQuaid2016-09-20 08:10:23 +0100
committerGitHub2016-09-20 08:10:23 +0100
commit5d7911fa71c6b97b385e22d6ec738973d1bbd64b (patch)
treeee34c90dd4ef7d3587167e9c7ca724b5d59480c3 /Library/Homebrew/brew.sh
parent9412c89e2d035104b25cf334600fd31204044441 (diff)
parent4c773725c7683ec624863459ac3b4a3237a7382f (diff)
downloadbrew-5d7911fa71c6b97b385e22d6ec738973d1bbd64b.tar.bz2
Merge pull request #1028 from penman/install_gems_to_gem_home
Use user GEM_HOME for installing gems
Diffstat (limited to 'Library/Homebrew/brew.sh')
-rw-r--r--Library/Homebrew/brew.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/brew.sh b/Library/Homebrew/brew.sh
index d33cc8678..daf53823f 100644
--- a/Library/Homebrew/brew.sh
+++ b/Library/Homebrew/brew.sh
@@ -59,6 +59,10 @@ then
odie "Cowardly refusing to continue at this prefix: $HOMEBREW_PREFIX"
fi
+# Save value to use for installing gems
+export GEM_OLD_HOME="$GEM_HOME"
+export GEM_OLD_PATH="$GEM_PATH"
+
# Users may have these set, pointing the system Ruby
# at non-system gem paths
unset GEM_HOME