Skip to content

Commit

Permalink
Merge pull request #16051 from apainintheneck/expand-paths-in-to-paths
Browse files Browse the repository at this point in the history
cli/named_args: expand paths in #to_paths
  • Loading branch information
MikeMcQuaid committed Sep 28, 2023
2 parents 9359f95 + b1c4796 commit eadbe0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/cli/named_args.rb
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def to_paths(only: parent&.only_formula_or_cask, recurse_tap: false)
@to_paths ||= {}
@to_paths[only] ||= Homebrew.with_no_api_env_if_needed(@without_api) do
downcased_unique_named.flat_map do |name|
path = Pathname(name)
path = Pathname(name).expand_path
if only.nil? && File.exist?(name)
path
elsif name.count("/") == 1 && !name.start_with?("./", "/")
Expand Down

0 comments on commit eadbe0f

Please sign in to comment.