From a5b29a79e6aaa5bf2a903a97570feec1caf75940 Mon Sep 17 00:00:00 2001 From: Kai Hoewelmeyer Date: Mon, 28 Nov 2022 19:36:03 +0100 Subject: [PATCH] and another one --- bin/brew | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/brew b/bin/brew index 9d055ac371..86b2973657 100755 --- a/bin/brew +++ b/bin/brew @@ -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