Merge pull request #13798 from max-ae/fix/generate-completion-none
generate_completions: fix `shell_parameter_format: :none`
This commit is contained in:
commit
f765382cb6
@ -1745,14 +1745,14 @@ class Formula
|
|||||||
elsif shell_parameter_format == :arg
|
elsif shell_parameter_format == :arg
|
||||||
"--shell=#{shell}"
|
"--shell=#{shell}"
|
||||||
elsif shell_parameter_format == :none
|
elsif shell_parameter_format == :none
|
||||||
""
|
nil
|
||||||
else
|
else
|
||||||
"#{shell_parameter_format}#{shell}"
|
"#{shell_parameter_format}#{shell}"
|
||||||
end
|
end
|
||||||
|
|
||||||
popen_read_args = %w[]
|
popen_read_args = %w[]
|
||||||
popen_read_args << commands
|
popen_read_args << commands
|
||||||
popen_read_args << shell_parameter
|
popen_read_args << shell_parameter if shell_parameter.present?
|
||||||
popen_read_args.flatten!
|
popen_read_args.flatten!
|
||||||
|
|
||||||
script_path.dirname.mkpath
|
script_path.dirname.mkpath
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user