and another one

This commit is contained in:
Kai Hoewelmeyer 2022-11-28 19:36:03 +01:00
parent 43c3c59ca4
commit a5b29a79e6

View File

@ -105,7 +105,7 @@ export HOMEBREW_LIBRARY
# set from user environment
# shellcheck disable=SC2154
# Use VISUAL if HOMEBREW_EDITOR and EDITOR are unset.
if [[ -z "${HOMEBREW_EDITOR:-}" && -n "${VISUAL}" ]]
if [[ -z "${HOMEBREW_EDITOR:-}" && -n "${VISUAL:-}" ]]
then
export HOMEBREW_EDITOR="${VISUAL}"
fi