Deprecate HOMEBREW_NO_ENV_FILTERING

It's undocumented so we don't need to do the full deprecation dance here
but let's give people a bit of a head up.
This commit is contained in:
Mike McQuaid 2021-03-04 08:51:44 +00:00
parent 9d62a13a31
commit d3d4abdbb2
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -108,6 +108,8 @@ then
exec /usr/bin/env -i "${FILTERED_ENV[@]}" /bin/bash "$HOMEBREW_LIBRARY/Homebrew/brew.sh" "$@"
else
echo "Warning: HOMEBREW_NO_ENV_FILTERING is undocumented, deprecated and will be removed in a future Homebrew release (because it breaks many things)!" >&2
# Don't need shellcheck to follow this `source`.
# shellcheck disable=SC1090
source "$HOMEBREW_LIBRARY/Homebrew/brew.sh"