dev-cmd/edit: make the warning easier to read

This commit is contained in:
Anatoli Babenia 2023-09-23 12:56:26 +03:00 committed by GitHub
parent 0e22d828f0
commit 4d625d03fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,8 +63,8 @@ module Homebrew
!Homebrew::EnvConfig.no_install_from_api? && !Homebrew::EnvConfig.no_install_from_api? &&
!Homebrew::EnvConfig.no_env_hints? !Homebrew::EnvConfig.no_env_hints?
opoo <<~EOS opoo <<~EOS
Unless `HOMEBREW_NO_INSTALL_FROM_API` is set when running `brew install`, `brew install` ignores locally edited #{(core_cask_path || core_cask_tap) ? "casks" : "formulae"},
it will ignore any locally edited #{(core_cask_path || core_cask_tap) ? "casks" : "formulae"}. if `HOMEBREW_NO_INSTALL_FROM_API` is not set.
EOS EOS
edit_api_message_displayed = true edit_api_message_displayed = true
end end