mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Merge pull request #16051 from apainintheneck/expand-paths-in-to-paths
cli/named_args: expand paths in #to_paths
This commit is contained in:
commit
eadbe0f184
@ -229,7 +229,7 @@ module Homebrew
|
||||
@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?("./", "/")
|
||||
|
Loading…
x
Reference in New Issue
Block a user