fix: allow running bin/brew with SHELLOPTS=nounset

A similar fix is already present on line 6.
This commit is contained in:
Kai Hoewelmeyer 2022-11-26 17:41:36 +01:00
parent 9c88c39bae
commit 5db5c6e99a

View File

@ -21,7 +21,7 @@ fi
# Fail fast with concise message when requesting unfiltered environment.
# This is basically odisabled so can be removed at any major release afterwards
# and definitely if this is still here in 2023.
if [ -n "${HOMEBREW_NO_ENV_FILTERING}" ]
if [ -n "${HOMEBREW_NO_ENV_FILTERING:-}" ]
then
echo "Error: HOMEBREW_NO_ENV_FILTERING was deprecated for over a year and has now been removed (because it breaks many things)!" >&2
exit 1