bin/brew: handle unbound variable.

This can fail when running `bin/brew` under `set -u`.
This commit is contained in:
Mike McQuaid 2025-01-09 12:25:10 +00:00
parent 352f6ac047
commit ac7f3d6182
No known key found for this signature in database

View File

@ -150,7 +150,7 @@ export_homebrew_env_file() {
do
[[ "${line}" = "${VAR}"* ]] && invalid_variable="${VAR}"
done
[[ -n "${invalid_variable}" ]] && continue
[[ -n "${invalid_variable:-}" ]] && continue
export "${line?}"
done <"${env_file}"