Merge pull request #10778 from MikeMcQuaid/deprecate_no_env_filtering

Deprecate HOMEBREW_NO_ENV_FILTERING
This commit is contained in:
Mike McQuaid 2021-03-05 11:24:53 +00:00 committed by GitHub
commit 1d0abd5401
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -113,6 +113,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"