brew.sh: cleanup some environment pollution.
This commit is contained in:
parent
c3006f0f12
commit
f999a57620
@ -69,9 +69,15 @@ then
|
|||||||
odie "Cowardly refusing to continue at this prefix: $HOMEBREW_PREFIX"
|
odie "Cowardly refusing to continue at this prefix: $HOMEBREW_PREFIX"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Save value to use for installing gems
|
# Save values to use for installing gems
|
||||||
export HOMEBREW_GEM_HOME="$GEM_HOME"
|
if [[ -n "$GEM_HOME" ]]
|
||||||
export HOMEBREW_GEM_PATH="$GEM_PATH"
|
then
|
||||||
|
export HOMEBREW_GEM_HOME="$GEM_HOME"
|
||||||
|
fi
|
||||||
|
if [[ -n "$GEM_PATH" ]]
|
||||||
|
then
|
||||||
|
export HOMEBREW_GEM_PATH="$GEM_PATH"
|
||||||
|
fi
|
||||||
|
|
||||||
# Users may have these set, pointing the system Ruby
|
# Users may have these set, pointing the system Ruby
|
||||||
# at non-system gem paths
|
# at non-system gem paths
|
||||||
@ -308,9 +314,6 @@ update-preinstall() {
|
|||||||
[[ -z "$HOMEBREW_NO_AUTO_UPDATE" ]] || return
|
[[ -z "$HOMEBREW_NO_AUTO_UPDATE" ]] || return
|
||||||
[[ -z "$HOMEBREW_UPDATE_PREINSTALL" ]] || return
|
[[ -z "$HOMEBREW_UPDATE_PREINSTALL" ]] || return
|
||||||
|
|
||||||
# Allow auto-update migration now we have a fix in place (below in this function).
|
|
||||||
export HOMEBREW_ENABLE_AUTO_UPDATE_MIGRATION="1"
|
|
||||||
|
|
||||||
if [[ "$HOMEBREW_COMMAND" = "install" || "$HOMEBREW_COMMAND" = "upgrade" || "$HOMEBREW_COMMAND" = "tap" ]]
|
if [[ "$HOMEBREW_COMMAND" = "install" || "$HOMEBREW_COMMAND" = "upgrade" || "$HOMEBREW_COMMAND" = "tap" ]]
|
||||||
then
|
then
|
||||||
if [[ -z "$HOMEBREW_VERBOSE" ]]
|
if [[ -z "$HOMEBREW_VERBOSE" ]]
|
||||||
@ -319,6 +322,9 @@ update-preinstall() {
|
|||||||
timer_pid=$!
|
timer_pid=$!
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Allow auto-update migration now we have a fix in place (below in this function).
|
||||||
|
export HOMEBREW_ENABLE_AUTO_UPDATE_MIGRATION="1"
|
||||||
|
|
||||||
brew update --preinstall
|
brew update --preinstall
|
||||||
|
|
||||||
if [[ -n "$timer_pid" ]]
|
if [[ -n "$timer_pid" ]]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user