From 5bdcbf8135e0cfc4870c09b15818d1655b3890b4 Mon Sep 17 00:00:00 2001
From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
Date: Tue, 4 Jun 2024 08:34:42 +0000
Subject: [PATCH] docs: updates from Homebrew/brew
---
docs/Homebrew/DevCmd/Edit.html | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/docs/Homebrew/DevCmd/Edit.html b/docs/Homebrew/DevCmd/Edit.html
index c1efdfc64..6f66f3b40 100644
--- a/docs/Homebrew/DevCmd/Edit.html
+++ b/docs/Homebrew/DevCmd/Edit.html
@@ -368,17 +368,6 @@
expanded_paths.each do |path|
raise_with_message!(path, args.cask?) unless path.exist?
end
-
- if expanded_paths.any? do |path|
- !Homebrew::EnvConfig.no_install_from_api? &&
- !Homebrew::EnvConfig.no_env_hints? &&
- (core_formula_path?(path) || core_cask_path?(path) || core_formula_tap?(path) || core_cask_tap?(path))
- end
- opoo <<~EOS
- `brew install` ignores locally edited casks and formulae if
- HOMEBREW_NO_INSTALL_FROM_API is not set.
- EOS
- end
expanded_paths
end
@@ -388,6 +377,17 @@
end
exec_editor(*paths)
+
+ if paths.any? do |path|
+ !Homebrew::EnvConfig.no_install_from_api? &&
+ !Homebrew::EnvConfig.no_env_hints? &&
+ (core_formula_path?(path) || core_cask_path?(path) || core_formula_tap?(path) || core_cask_tap?(path))
+ end
+ opoo <<~EOS
+ `brew install` ignores locally edited casks and formulae if
+ HOMEBREW_NO_INSTALL_FROM_API is not set.
+ EOS
+ end
end