diff --git a/Library/Homebrew/dev-cmd/edit.rb b/Library/Homebrew/dev-cmd/edit.rb index 0bd2578715..e60bd34364 100644 --- a/Library/Homebrew/dev-cmd/edit.rb +++ b/Library/Homebrew/dev-cmd/edit.rb @@ -118,8 +118,9 @@ module Homebrew if (path.core_formula_path? || path.core_cask_path? || path.core_formula_tap? || path.core_cask_tap?) && !Homebrew::EnvConfig.no_install_from_api? && !Homebrew::EnvConfig.no_env_hints? + path_type = (path.core_cask_path? || path.core_cask_tap?) ? "casks" : "formulae" opoo <<~EOS - `brew install` ignores locally edited #{(path.core_cask_path? || path.core_cask_tap?) ? "casks" : "formulae"} if + `brew install` ignores locally edited #{path_type} if HOMEBREW_NO_INSTALL_FROM_API is not set. EOS break