mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Let bin/brew handle its own exporting
This commit is contained in:
parent
ee52b19179
commit
0a4fd2201e
@ -440,13 +440,6 @@ curl_version_output="$("$HOMEBREW_CURL" --version 2>/dev/null)"
|
|||||||
curl_name_and_version="${curl_version_output%% (*}"
|
curl_name_and_version="${curl_version_output%% (*}"
|
||||||
HOMEBREW_USER_AGENT_CURL="$HOMEBREW_USER_AGENT ${curl_name_and_version// //}"
|
HOMEBREW_USER_AGENT_CURL="$HOMEBREW_USER_AGENT ${curl_name_and_version// //}"
|
||||||
|
|
||||||
# Declared in bin/brew
|
|
||||||
export HOMEBREW_BREW_FILE
|
|
||||||
export HOMEBREW_PREFIX
|
|
||||||
export HOMEBREW_REPOSITORY
|
|
||||||
export HOMEBREW_LIBRARY
|
|
||||||
|
|
||||||
# Declared in brew.sh
|
|
||||||
export HOMEBREW_VERSION
|
export HOMEBREW_VERSION
|
||||||
export HOMEBREW_DEFAULT_CACHE
|
export HOMEBREW_DEFAULT_CACHE
|
||||||
export HOMEBREW_CACHE
|
export HOMEBREW_CACHE
|
||||||
|
5
bin/brew
5
bin/brew
@ -75,6 +75,11 @@ do
|
|||||||
export "$VAR_NEW"="${!VAR}"
|
export "$VAR_NEW"="${!VAR}"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
export HOMEBREW_BREW_FILE
|
||||||
|
export HOMEBREW_PREFIX
|
||||||
|
export HOMEBREW_REPOSITORY
|
||||||
|
export HOMEBREW_LIBRARY
|
||||||
|
|
||||||
# Use VISUAL if HOMEBREW_EDITOR and EDITOR are unset.
|
# Use VISUAL if HOMEBREW_EDITOR and EDITOR are unset.
|
||||||
if [[ -z "$HOMEBREW_EDITOR" && -n "$VISUAL" ]]
|
if [[ -z "$HOMEBREW_EDITOR" && -n "$VISUAL" ]]
|
||||||
then
|
then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user