diff options
| author | Doug Hazell | 2017-02-12 14:31:37 +0000 |
|---|---|---|
| committer | Doug Hazell | 2017-02-12 14:31:37 +0000 |
| commit | 0bb0228962cebcce05ab966618945621ba144fcb (patch) | |
| tree | ed8137dc0aa173494d8e1eccb6e152bd74bdcf86 /Library | |
| parent | e78b31905df68309af65347a4ed2338f87942854 (diff) | |
| download | brew-0bb0228962cebcce05ab966618945621ba144fcb.tar.bz2 | |
Presumably the "env -I" was a typo for "env -i"
Just sourcing brew.sh causes the "Example usage" msg due to lacking command args but changing the last line of your suggestion to:
/bin/bash "$HOMEBREW_LIBRARY/Homebrew/brew.sh" "$@"
worked.
If all of the 'HOMEBREW.*' vars, that other parts of the system require, are only added in brew.sh then your suggestion is cleaner.
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/Homebrew/utils/shell_env.sh | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/Library/Homebrew/utils/shell_env.sh b/Library/Homebrew/utils/shell_env.sh deleted file mode 100755 index fc7e1c972..000000000 --- a/Library/Homebrew/utils/shell_env.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash -set +o posix - -IFS="=" - -while read -r key value -do - export "$key=$value" -done < /tmp/homebrew-env - -# Need to reset IFS to default value for later shell functions like 'printf -v HOMEBREW_MACOS_VERSION_NUMERIC ...' to work -unset IFS - -# HOMEBREW_LIBRARY will have been readded above having been added originally in 'bin/brew' -source "$HOMEBREW_LIBRARY/Homebrew/brew.sh" |
