mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
fix one more
This commit is contained in:
parent
4d4f476f73
commit
43c3c59ca4
2
bin/brew
2
bin/brew
@ -105,7 +105,7 @@ export HOMEBREW_LIBRARY
|
|||||||
# set from user environment
|
# set from user environment
|
||||||
# shellcheck disable=SC2154
|
# shellcheck disable=SC2154
|
||||||
# Use VISUAL if HOMEBREW_EDITOR and EDITOR are unset.
|
# Use VISUAL if HOMEBREW_EDITOR and EDITOR are unset.
|
||||||
if [[ -z "${HOMEBREW_EDITOR}" && -n "${VISUAL}" ]]
|
if [[ -z "${HOMEBREW_EDITOR:-}" && -n "${VISUAL}" ]]
|
||||||
then
|
then
|
||||||
export HOMEBREW_EDITOR="${VISUAL}"
|
export HOMEBREW_EDITOR="${VISUAL}"
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user